Class B2CreatedApplicationKey
- java.lang.Object
-
- com.backblaze.b2.client.structures.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAccountId()
java.lang.String
getApplicationKey()
java.lang.String
getApplicationKeyId()
java.lang.String
getBucketId()
java.util.TreeSet<java.lang.String>
getCapabilities()
java.lang.Long
getExpirationTimestamp()
java.lang.String
getKeyName()
java.lang.String
getNamePrefix()
java.util.Set<java.lang.String>
getOptions()
int
hashCode()
B2ApplicationKey
toApplicationKey()
Converts to the B2ApplicationKey structure, as returned from b2_list_keys, which does not contain the secret key.
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-