Class RouterMasterKey
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKey
- Direct Known Subclasses:
RouterMasterKeyPBImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract LongGet the ExpiryDate of the DelegationKey.abstract ByteBufferGet the keyBytes of the DelegationKey.abstract IntegergetKeyId()Get the keyId of the MasterKey.inthashCode()static RouterMasterKeynewInstance(Integer keyId, ByteBuffer keyBytes, Long expiryDate) static RouterMasterKeynewInstance(RouterMasterKey masterKey) abstract voidsetExpiryDate(Long expiryDate) Set the expiryDate of the DelegationKey.abstract voidsetKeyBytes(ByteBuffer keyBytes) Set the keyBytes of the DelegationKey.abstract voidSet the keyId of the MasterKey.toString()
-
Constructor Details
-
RouterMasterKey
public RouterMasterKey()
-
-
Method Details
-
newInstance
@Private @Unstable public static RouterMasterKey newInstance(Integer keyId, ByteBuffer keyBytes, Long expiryDate) -
newInstance
-
getKeyId
Get the keyId of the MasterKey.- Returns:
- MasterKeyId.
-
setKeyId
Set the keyId of the MasterKey.- Parameters:
keyId- MasterKeyId.
-
getKeyBytes
Get the keyBytes of the DelegationKey.- Returns:
- KeyBytes of the DelegationKey.
-
setKeyBytes
Set the keyBytes of the DelegationKey.- Parameters:
keyBytes- KeyBytes of the DelegationKey.
-
getExpiryDate
Get the ExpiryDate of the DelegationKey.- Returns:
- ExpiryDate of the DelegationKey.
-
setExpiryDate
Set the expiryDate of the DelegationKey.- Parameters:
expiryDate- expiryDate of the DelegationKey.
-
hashCode
public int hashCode() -
equals
-
toString
-