| | |
| | | String.valueOf(keyEntry.getIVLengthBits())); |
| | | putSingleValueAttribute(userAttrs, attrKeyLength, |
| | | String.valueOf(keyEntry.getKeyLengthBits())); |
| | | userAttrs.put(attrSymmetricKey, buildSymetricKeyAttributes(keyEntry.getSecretKey())); |
| | | userAttrs.put(attrSymmetricKey, buildSymmetricKeyAttributes(keyEntry.getSecretKey())); |
| | | |
| | | // Create the entry. |
| | | LinkedHashMap<AttributeType, List<Attribute>> opAttrs = new LinkedHashMap<>(0); |
| | |
| | | userAttrs.put(attrKeyID, Attributes.createAsList(attrKeyID, distinguishedValue)); |
| | | putSingleValueAttribute(userAttrs, attrMacAlgorithm, keyEntry.getType()); |
| | | putSingleValueAttribute(userAttrs, attrKeyLength, String.valueOf(keyEntry.getKeyLengthBits())); |
| | | userAttrs.put(attrSymmetricKey, buildSymetricKeyAttributes(keyEntry.getSecretKey())); |
| | | userAttrs.put(attrSymmetricKey, buildSymmetricKeyAttributes(keyEntry.getSecretKey())); |
| | | |
| | | // Create the entry. |
| | | LinkedHashMap<AttributeType, List<Attribute>> opAttrs = new LinkedHashMap<>(0); |
| | |
| | | private final String fType; |
| | | } |
| | | |
| | | private List<Attribute> buildSymetricKeyAttributes(SecretKey secretKey) throws CryptoManagerException |
| | | private List<Attribute> buildSymmetricKeyAttributes(SecretKey secretKey) throws CryptoManagerException |
| | | { |
| | | Map<String, byte[]> trustedCerts = getTrustedCertificates(); |
| | | |