Class B2CreatedApplicationKey


  • public class B2CreatedApplicationKey
    extends java.lang.Object
    Information returned from b2_create_key. This is like B2ApplicationKey, with the addition of the secret applicationKey, which is returned when a key is created, but not returned by b2_list_keys, or b2_delete_key.
    • Constructor Summary

      Constructors 
      Constructor Description
      B2CreatedApplicationKey​(java.lang.String accountId, java.lang.String applicationKeyId, java.lang.String applicationKey, java.lang.String keyName, java.util.TreeSet<java.lang.String> capabilities, java.lang.String bucketId, java.lang.String namePrefix, java.lang.Long expirationTimestamp, java.util.Set<java.lang.String> options)  
    • Constructor Detail

      • B2CreatedApplicationKey

        public B2CreatedApplicationKey​(java.lang.String accountId,
                                       java.lang.String applicationKeyId,
                                       java.lang.String applicationKey,
                                       java.lang.String keyName,
                                       java.util.TreeSet<java.lang.String> capabilities,
                                       java.lang.String bucketId,
                                       java.lang.String namePrefix,
                                       java.lang.Long expirationTimestamp,
                                       java.util.Set<java.lang.String> options)
    • Method Detail

      • getAccountId

        public java.lang.String getAccountId()
      • getApplicationKeyId

        public java.lang.String getApplicationKeyId()
      • getApplicationKey

        public java.lang.String getApplicationKey()
      • getKeyName

        public java.lang.String getKeyName()
      • getCapabilities

        public java.util.TreeSet<java.lang.String> getCapabilities()
      • getBucketId

        public java.lang.String getBucketId()
      • getNamePrefix

        public java.lang.String getNamePrefix()
      • getExpirationTimestamp

        public java.lang.Long getExpirationTimestamp()
      • getOptions

        public java.util.Set<java.lang.String> getOptions()
      • toApplicationKey

        public B2ApplicationKey toApplicationKey()
        Converts to the B2ApplicationKey structure, as returned from b2_list_keys, which does not contain the secret key.
      • equals

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

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