Java 类org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.DataEncryptionKeyProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hadoop    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(getByteString(bet.nonce))
      .setEncryptionKey(getByteString(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:big-c    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:big-c    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hadoop-plus    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hadoop-plus    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:FlexMap    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:FlexMap    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hops    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(), bet.getBlockPoolId(),
      bet.getNonce().toByteArray(), bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hops    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b =
      DataEncryptionKeyProto.newBuilder().setKeyId(bet.keyId)
          .setBlockPoolId(bet.blockPoolId)
          .setNonce(ByteString.copyFrom(bet.nonce))
          .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
          .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hadoop-TCP    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hardfs    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hardfs    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static DataEncryptionKey convert(DataEncryptionKeyProto bet) {
  String encryptionAlgorithm = bet.getEncryptionAlgorithm();
  return new DataEncryptionKey(bet.getKeyId(),
      bet.getBlockPoolId(),
      bet.getNonce().toByteArray(),
      bet.getEncryptionKey().toByteArray(),
      bet.getExpiryDate(),
      encryptionAlgorithm.isEmpty() ? null : encryptionAlgorithm);
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static DataEncryptionKeyProto convert(DataEncryptionKey bet) {
  DataEncryptionKeyProto.Builder b = DataEncryptionKeyProto.newBuilder()
      .setKeyId(bet.keyId)
      .setBlockPoolId(bet.blockPoolId)
      .setNonce(ByteString.copyFrom(bet.nonce))
      .setEncryptionKey(ByteString.copyFrom(bet.encryptionKey))
      .setExpiryDate(bet.expiryDate);
  if (bet.encryptionAlgorithm != null) {
    b.setEncryptionAlgorithm(bet.encryptionAlgorithm);
  }
  return b.build();
}