Class Credential

java.lang.Object
org.apache.hadoop.ozone.s3.signature.Credential

public class Credential extends Object
Credential in the AWS authorization header. Ref: https://docs.aws.amazon.com/AmazonS3/latest/API/ sigv4-auth-using-authorization-header.html
  • Method Details

    • parseCredential

      public void parseCredential() throws MalformedResourceException
      Parse credential value.

      Sample credential value: Credential=AKIAIOSFODNN7EXAMPLE/20130524/us-east-1/s3/aws4_request

      Throws:
      MalformedResourceException
    • getAccessKeyID

      public String getAccessKeyID()
    • getDate

      public String getDate()
    • getAwsRegion

      public String getAwsRegion()
    • getAwsService

      public String getAwsService()
    • getAwsRequest

      public String getAwsRequest()
    • getCredential

      public String getCredential()
    • createScope

      public String createScope()