Class SecurityObjectKeySpec
- java.lang.Object
-
- com.fortanix.sdkms.jce.provider.spec.SecurityObjectKeySpec
-
- All Implemented Interfaces:
java.security.spec.KeySpec
public class SecurityObjectKeySpec extends java.lang.Object implements java.security.spec.KeySpec
-
-
Constructor Summary
Constructors Constructor Description SecurityObjectKeySpec(boolean isTransientKey)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, boolean isTransientKey)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.lang.String groupId)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.lang.String groupId, java.lang.String alias)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, boolean isTransientKey)SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaEncryptionPolicy rsaEncryptionPolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policySecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaEncryptionPolicy rsaEncryptionPolicy, com.fortanix.sdkms.v1.model.RsaSignaturePolicy rsaSignaturePolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policySecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaSignaturePolicy rsaSignaturePolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policySecurityObjectKeySpec(java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlias()java.util.List<com.fortanix.sdkms.v1.model.KeyOperations>getAllowedKeyOperations()com.fortanix.sdkms.v1.model.RsaEncryptionPolicygetEncryptionPolicy()java.lang.StringgetGroupId()booleangetIsTransientKey()java.security.spec.KeySpecgetKeySpec()com.fortanix.sdkms.v1.model.RsaSignaturePolicygetSignaturePolicy()voidsetAlias(java.lang.String alias)voidsetGroupId(java.lang.String groupId)voidsetIsTransientKey(boolean isTransientKey)
-
-
-
Constructor Detail
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.lang.String groupId)
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations)
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, boolean isTransientKey)
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, boolean isTransientKey)
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations)
- Parameters:
allowedKeyOperations-
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(boolean isTransientKey)
- Parameters:
isTransientKey-
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.lang.String groupId, java.lang.String alias)- Parameters:
alias-
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaEncryptionPolicy rsaEncryptionPolicy, com.fortanix.sdkms.v1.model.RsaSignaturePolicy rsaSignaturePolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policy- Parameters:
secretKeySpec- additional parameter spec, user want to passrsaEncryptionPolicy-rsaSignaturePolicy-allowedKeyOperations-
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaSignaturePolicy rsaSignaturePolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policy- Parameters:
secretKeySpec- additional parameter spec, user want to passrsaSignaturePolicy-allowedKeyOperations-
-
SecurityObjectKeySpec
public SecurityObjectKeySpec(java.security.spec.KeySpec secretKeySpec, java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> allowedKeyOperations, com.fortanix.sdkms.v1.model.RsaEncryptionPolicy rsaEncryptionPolicy)Constructor to initialized allowed key operation along with secretkey spec and encryption policy- Parameters:
secretKeySpec- additional parameter spec, user want to passrsaEncryptionPolicy-allowedKeyOperations-
-
-
Method Detail
-
setGroupId
public void setGroupId(java.lang.String groupId)
-
setIsTransientKey
public void setIsTransientKey(boolean isTransientKey)
-
getAllowedKeyOperations
public java.util.List<com.fortanix.sdkms.v1.model.KeyOperations> getAllowedKeyOperations()
-
getIsTransientKey
public boolean getIsTransientKey()
-
getKeySpec
public java.security.spec.KeySpec getKeySpec()
-
getGroupId
public java.lang.String getGroupId()
-
getEncryptionPolicy
public com.fortanix.sdkms.v1.model.RsaEncryptionPolicy getEncryptionPolicy()
- Returns:
- the Encryption policy. Only used for RSA Keygen
-
getSignaturePolicy
public com.fortanix.sdkms.v1.model.RsaSignaturePolicy getSignaturePolicy()
- Returns:
- the Signature policy. Only used for RSA Keygen
-
getAlias
public java.lang.String getAlias()
-
setAlias
public void setAlias(java.lang.String alias)
-
-