Ejemplo n.º 1
0
 public ClientToAMTokenSecretManager(ApplicationAttemptId applicationAttemptID, byte[] key) {
   super();
   if (key != null) {
     this.masterKey = SecretManager.createSecretKey(key);
   } else {
     this.masterKey = null;
   }
 }
Ejemplo n.º 2
0
 public void setMasterKey(byte[] key) {
   this.masterKey = SecretManager.createSecretKey(key);
 }
 public static SecretKey createSecretKey(byte[] raw) {
   return SecretManager.createSecretKey(raw);
 }
 public void setMasterKey(byte[] key) {
   synchronized (this) {
     this.masterKey = SecretManager.createSecretKey(key);
     notifyAll();
   }
 }
 /**
  * Convert the byte[] to a secret key
  *
  * @param key the byte[] to create the secret key from
  * @return the secret key
  */
 public static SecretKey createSecretKey(byte[] key) {
   return SecretManager.createSecretKey(key);
 }