public class KmipUtils extends Object
| Constructor and Description |
|---|
KmipUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bytesFromKeyBlock(KeyBlock keyBlock)
Extract the key bytes from a
KeyBlock for those made of byte arrays |
static byte[] |
nonceFromKeyWrappingData(KeyWrappingData keyWrappingData)
Extract the nonce/iv/counter bytes from a
KeyWrappingData for those made of byte arrays |
public static byte[] bytesFromKeyBlock(KeyBlock keyBlock) throws CosmianException
KeyBlock for those made of byte arrayskeyBlock - the KeyBlockCosmianException - if the KeyBlock is malformed the bytes cannot be foundpublic static byte[] nonceFromKeyWrappingData(KeyWrappingData keyWrappingData) throws CosmianException
KeyWrappingData for those made of byte arrayskeyWrappingData - the KeyWrappingDataCosmianException - if no Noce is availableCopyright © 2022. All rights reserved.