public class KeychainCertProperties
extends java.lang.Object
KeychainCertProperties to cache
and retrieve the certificate properties in the Mac local machine. Certificate
properties hold important information that assists in the use and management
of a user's certificates. Certificate properties are not part of the actual
certificate, but instead are attached to certificates stored on the user's
machine.
The certificate properties file is saved under Mac user's application support
folder. The format of full path of file name is in the following format. | Constructor and Description |
|---|
KeychainCertProperties(Name issuerDN,
java.math.BigInteger serialNumber)
Create a new KeychainCertProperties object
|
KeychainCertProperties(X509Certificate certificate)
Create a new KeychainCertProperties object
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete certificate properties file from the local machine.
|
java.lang.String |
getCertDefinitionPolicyCertDN()
Retrieve the DN of the certificate definition policy certificate.
|
java.lang.String |
getCertDefnName()
Retrieve the name of certificate definition.
|
int |
getCertManagementState()
Retrieve the certificate management state
|
int |
getCertPublicationPending()
Retrieve the certificate publication pending certificate property
|
java.lang.String |
getEntrustSecurityStore()
Retrieve the EPF full file path name or roaming ID
|
EntrustEventIdentifier |
getEventIdentifier()
Retrieve the event identifier.
|
byte |
getEventIndicator()
Retrieve the event indicator
|
java.lang.String |
getFriendlyName()
Retrieve the certificate friendly name
|
java.lang.String |
getKeychainContainerName()
Retrieve the key container name certificate property.
|
java.lang.String |
getMappedContainerName()
Retrieve the mapped container name certificate property.
|
byte[] |
getRoleIDPKIXMessage()
Retrieve PKIX message.
|
java.lang.String |
getRolePolicyCertDN()
Retrieve the DN of the role policy certificate.
|
int |
getSecurityStoreType()
Retrieve the digital ID security store type
|
int |
getSecurityStoreTypeWithoutDefault()
Retrieve the digital ID security store type
|
java.lang.String |
getTokenID()
Retrieve the tokenID certificate property.
|
boolean |
isCertArchived()
Check to see if the certificate is archived.
|
boolean |
isKeyUpdateNotAllowed()
Retrieve the key update not allowed flag
|
boolean |
isReadonlyDigitalID()
Check to see if the certificate management state is read only digital ID.
|
void |
setCertArchived(boolean archived)
Set the flag if the certificate is archived.
|
void |
setCertDefinitionPolicyCertDN(java.lang.String policyCertDN)
Set the DN of the certificate definition policy certificate.
|
void |
setCertDefnName(java.lang.String certDefnName)
Set the name of certificate definition.
|
void |
setCertManagementState(int certManagementState)
Set the certificate management state certificate property
|
void |
setCertPublicationPending(int certPubPending)
Set the certificate publication pending certificate property
|
void |
setEntrustSecurityStore(java.lang.String securityStore)
Set the EPF full file path name or roaming ID
|
void |
setEventIdentifier(EntrustEventIdentifier eventIdentifier)
Set the event identifier.
|
void |
setEventIndicator(byte indicator)
Set the event indicator
|
void |
setFriendlyName(java.lang.String friendlyName)
Set the certificate friendly name certificate property.
|
void |
setKeychainContainerName(java.lang.String containerName)
Set the key container name certificate property.
|
void |
setKeyUpdateNotAllowed(boolean keyUpdatesNotAllowed)
Set the key update not allowed flag.
|
void |
setMappedContainerName(java.lang.String mappedContainerName)
Set the mapped container name certificate property.
|
void |
setRoleIDPKIXMessage(byte[] roleIDPKIXMessage)
Set PKIX message which can obtain the role ID.
|
void |
setRolePolicyCertDN(java.lang.String policyCertDN)
Set the DN of the role policy certificate.
|
void |
setSecurityStoreType(int storeType)
Set the digital ID security store type
|
void |
setTokenID(java.lang.String tokenID)
Set the tokenID property.
|
boolean |
shouldPerformUpdateSilently()
Check to see if the certificate management state is perform update silently.
|
void |
write()
Write the certificate properties in the file.
|
public KeychainCertProperties(X509Certificate certificate) throws KeychainException
certificate - The certificate is attached to the certificate properties.KeychainException - If failed to hash key IDpublic KeychainCertProperties(Name issuerDN, java.math.BigInteger serialNumber) throws KeychainException
issuerDN - The issuer DN of the certificate which is attached to the
certificate properties.serialNumber - The serial number of the certificate which is attached to
the certificate properties.KeychainException - if failed to hash key IDpublic void write()
throws java.io.IOException
java.io.IOException - if failed to write the certificate properties to the
file.public void delete()
public void setKeychainContainerName(java.lang.String containerName)
containerName - the value of key container name.public java.lang.String getKeychainContainerName()
public void setRolePolicyCertDN(java.lang.String policyCertDN)
policyCertDN - the DN of the role policy certificatepublic java.lang.String getRolePolicyCertDN()
public void setCertDefinitionPolicyCertDN(java.lang.String policyCertDN)
policyCertDN - the DN of the certificate definition policy certificatepublic java.lang.String getCertDefinitionPolicyCertDN()
public void setCertDefnName(java.lang.String certDefnName)
certDefnName - the name of certificate definitionpublic java.lang.String getCertDefnName()
public void setEventIdentifier(EntrustEventIdentifier eventIdentifier)
eventIdentifier - the value of event identifierpublic EntrustEventIdentifier getEventIdentifier()
public void setEventIndicator(byte indicator)
indicator - the value of event indicatorpublic byte getEventIndicator()
public void setRoleIDPKIXMessage(byte[] roleIDPKIXMessage)
roleIDPKIXMessage - the value of PKIX messagepublic byte[] getRoleIDPKIXMessage()
public void setKeyUpdateNotAllowed(boolean keyUpdatesNotAllowed)
keyUpdatesNotAllowed - the key update not allowed flagpublic boolean isKeyUpdateNotAllowed()
public void setCertPublicationPending(int certPubPending)
certPubPending - the value of the certificate publication pendingpublic int getCertPublicationPending()
public void setCertManagementState(int certManagementState)
certManagementState - the value of the certificate management statepublic int getCertManagementState()
public boolean shouldPerformUpdateSilently()
public boolean isReadonlyDigitalID()
public void setMappedContainerName(java.lang.String mappedContainerName)
mappedContainerName - the value of the mapped container namepublic java.lang.String getMappedContainerName()
public void setCertArchived(boolean archived)
archived - the certificate archive flagpublic boolean isCertArchived()
public void setFriendlyName(java.lang.String friendlyName)
friendlyName - the certificate friendly namepublic java.lang.String getFriendlyName()
public void setSecurityStoreType(int storeType)
storeType - the digital ID security store typepublic int getSecurityStoreType()
public int getSecurityStoreTypeWithoutDefault()
public void setEntrustSecurityStore(java.lang.String securityStore)
securityStore - the EPF full file path name or roaming IDpublic java.lang.String getEntrustSecurityStore()
public void setTokenID(java.lang.String tokenID)
tokenID - the value of tokenID.public java.lang.String getTokenID()