Class B2AccountAuthorization


  • public class B2AccountAuthorization
    extends java.lang.Object
    • Constructor Detail

      • B2AccountAuthorization

        public B2AccountAuthorization​(java.lang.String accountId,
                                      java.lang.String authorizationToken,
                                      java.lang.String apiUrl,
                                      java.lang.String downloadUrl,
                                      long recommendedPartSize,
                                      long absoluteMinimumPartSize,
                                      B2Allowed allowed,
                                      java.lang.String s3ApiUrl)
    • Method Detail

      • getAccountId

        public java.lang.String getAccountId()
      • getAuthorizationToken

        public java.lang.String getAuthorizationToken()
      • getApiUrl

        public java.lang.String getApiUrl()
      • getDownloadUrl

        public java.lang.String getDownloadUrl()
      • getRecommendedPartSize

        public long getRecommendedPartSize()
      • getAbsoluteMinimumPartSize

        public long getAbsoluteMinimumPartSize()
      • getS3ApiUrl

        public java.lang.String getS3ApiUrl()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • withAuthToken

        public B2AccountAuthorization withAuthToken​(java.lang.String authToken)
        Parameters:
        authToken - the desired authToken.
        Returns:
        a new B2AccountAuthorization, just like this one but with the given authToken. useful for tests, etc.