public class EntrustCertDefnSettings
extends java.lang.Object
EntrustCertDefnInfo ::= SEQUENCE {
certdefn EntrustCertInfoId,
policycertdn DistinguishedName OPTIONAL,
policycert [1] ANY OPTIONAL -- the policy cert in some encoding
};
In addition to providing access to the components from the structure above, access is also provided to each known certificate-definition policysetting contained within the policy certificate.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
m_sanHandling
The certificate definition policy used to identify how SAN requests are handled
in incoming CMP requests.
|
| Constructor and Description |
|---|
EntrustCertDefnSettings(EntrustCertDefnInfo entrustCertDefnInfo)
Creates an
EntrustCertDefnSettings object from an
EntrustCertDefnInfo structure. |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(ObjectID oid)
Returns the requested policy setting from the policy certificate.
|
EntrustCertInfoId |
getCertdefn()
Returns the certificate-definition identifier, which is the 'certdefn'
component that was extracted from the EntrustCertDefnInfo structure.
|
java.lang.Boolean |
getCMPUnknown()
Returns the cd_cmp_unknown policy setting from the policy certificate.
|
byte[] |
getEncodedCertDefnPolicyCert()
Gets the DER-encoded certificate definition policy certificate.
|
java.lang.Boolean |
getExcBasicConst()
Returns the cd_exc_basicconst policy setting from the policy certificate.
|
java.lang.Boolean |
getExcCDP()
Returns the cd_exc_cdp policy setting from the policy certificate.
|
java.lang.Boolean |
getExcEntVersInfo()
Returns the cd_exc_entversinfo policy setting from the policy certificate.
|
java.lang.Boolean |
getExcPrivKeyUsage()
Returns the cd_exc_privkeyusage policy setting from the policy certificate.
|
java.lang.Boolean |
getExcSubjKeyId()
Returns the cd_exc_subjkeyid policy setting from the policy certificate.
|
java.lang.String |
getKeyCSP()
Returns the cd_key_csp policy setting from the policy certificate.
|
java.lang.String |
getKeyType()
Returns the cd_key_type policy setting from the policy certificate.
|
java.lang.String |
getKeyUsage()
Returns the cd_key_usage policy setting from the policy certificate.
|
java.lang.Integer |
getLifetime()
Returns the cd_lifetime policy setting from the policy certificate.
|
java.lang.String |
getPivContainer()
Returns the cd_piv_container policy setting from the policy certificate.
|
Name |
getPolicycertdn()
Returns the certificate-definition policy certificate DN, which is the
'policycertdn' component that was extracted from the EntrustCertDefnInfo
structure.
|
java.lang.Integer |
getPrivKeyUsage()
Returns the cd_privkeyusage policy setting from the policy certificate.
|
java.lang.String |
getPublishDN()
Returns the cd_publish_dn policy setting from the policy certificate.
|
java.lang.String |
getPublishPolicy()
Returns the cd_publish_policy policy setting from the policy certificate.
|
java.util.Date |
getUpdDate()
Returns the cd_upd_date policy setting from the policy certificate.
|
int |
getUpdPercent()
Returns the cd_upd_percent policy setting from the policy certificate.
|
boolean |
isCMPEnforce()
Returns the cd_cmp_enforce policy setting from the policy certificate.
|
boolean |
isCMPLatestSign()
Returns the cd_cmp_latest_sign policy setting from the policy certificate.
|
boolean |
isCMPOverride()
Returns the cd_cmp_override policy setting from the policy certificate.
|
boolean |
isCMPPublish()
Returns the cd_cmp_publish policy setting from the policy certificate.
|
boolean |
isCMPSignCMP()
Returns the cd_cmp_sign_cmp policy setting from the policy certificate.
|
boolean |
isExcCertPol()
Returns the cd_exc_certpol policy setting from the policy certificate.
|
boolean |
isExcSubjAltName()
Returns the cd_exc_subjaltname policy setting from the policy certificate.
|
boolean |
isIgnoreUserLife()
Returns the cd_ignore_userlife policy setting from the policy certificate.
|
boolean |
isKeyBackup()
Returns the cd_key_backup policy setting from the policy certificate.
|
boolean |
isKeyClientGen()
Returns the cd_key_clientgen policy setting from the policy certificate.
|
boolean |
isKeyCSPExport()
Returns the cd_key_csp_export policy setting from the policy certificate.
|
boolean |
isKeyCSPForSCLO()
Returns the Key is for SmartCard Logon policy setting from the policy certificate.
|
boolean |
isKeyCSPProtect()
Returns the cd_key_csp_protect policy setting from the policy certificate.
|
boolean |
isPublishExpired()
Returns the cd_publish_expired policy setting from the policy certificate.
|
boolean |
isPublishKeyUpd()
Returns the cd_publish_keyupd policy setting from the policy certificate.
|
boolean |
isPublishRevoked()
Returns the cd_publish_revoked policy setting from the policy certificate.
|
boolean |
isUpdDateEnabled()
Returns the cd_upd_date_enabled policy setting from the policy certificate.
|
java.lang.String |
toString()
Creates a text representation of the certificate-definition information,
including the values of each of the known policy settings (any policy
setting that has an accessor API).
|
public java.lang.String m_sanHandling
public EntrustCertDefnSettings(EntrustCertDefnInfo entrustCertDefnInfo) throws CodingException
EntrustCertDefnSettings object from an
EntrustCertDefnInfo structure.
The 'certdefn' and 'policycertdn' components are simply extracted and stored internally; while the 'policycert' component is extracted, ASN1 decoded into an Entrust Attribute Certificate object, and stored internally. This implementation of Entrust certificate-definition policy information requires that the 'policycert' component be an ASN1 encoded Entrust Attribute Certificate.
All the known certificate-definition policy settings are then extracted from the policy certificate as attributes. The following table indicates all the certificate-definition policy settings that are extracted, including the format expected, and default values. If one of the listed certificate-definition policy settings is not found in the policy certificate, the default value is used instead.
In all cases, except for known certificate-definition policies 'Encryption' and 'Verification', a policy certificate is required in the EntrustCertDefnInfo structure. If a known policy that is missing a policy certificate is encountered, known values (listed in the table below) are automatically set instead.
| Entrust Certificate-Definition Policy Settings | ||||
| Policy Name | ASN1 Format | Default Value | 'Encryption' Value | 'Verification' Value |
| cd_lifetime | INTEGER | none | 36 | 36 |
| cd_privkeyusage | INTEGER | none | 70 | 70 |
| cd_ignore_userlife | BOOLEAN | false | false | false |
| cd_publish_policy | UTF8String | "none" (ver-certs), "latest" (enc-certs) | "latest" | "none" |
| cd_publish_revoked | BOOLEAN | true | true | false |
| cd_publish_expired | BOOLEAN | true | true | false |
| cd_publish_dn | UTF8String | "current" | "match" | "match" |
| cd_publish_keyupd | BOOLEAN | true (enc-certs), false (ver-certs) | true | false |
| cd_exc_privkeyusage | BOOLEAN | none | false | false |
| cd_exc_basicconst | BOOLEAN | none | false | false |
| cd_exc_cdp | BOOLEAN | none | false | false |
| cd_exc_entversinfo | BOOLEAN | none | false | false |
| cd_exc_subjkeyid | BOOLEAN | none | false | false |
| cd_exc_certpol | BOOLEAN | false | false | false |
| cd_exc_subjaltname | BOOLEAN | false | false | false |
| cd_cmp_override | BOOLEAN | true | false | false |
| cd_cmp_unknown | BOOLEAN | none | false | false |
| cd_cmp_enforce | BOOLEAN | false | false | false |
| cd_cmp_latest_sign | BOOLEAN | true | true | true |
| cd_cmp_sign_cmp | BOOLEAN | false | false | true |
| cd_cmp_publish | BOOLEAN | false | false | false |
| cd_key_type | UTF8String | none | none | none |
| cd_key_backup | BOOLEAN | false | true | false |
| cd_key_clientgen | BOOLEAN | true | false | true |
| cd_key_usage | UTF8String | "both" | "encryption" | "verification" |
| cd_key_csp | UTF8String | "" | "" | "" |
| cd_key_csp_protect | BOOLEAN | true | true | true |
| cd_key_csp_export | BOOLEAN | false | false | false |
| cd_piv_container | UTF8String | "None" | "None" | "None" |
| cd_upd_percent | INTEGER | 0 | 0 | 0 |
| cd_upd_date_enabled | BOOLEAN | false | false | false |
| cd_upd_date | UTCTime | none | 000101000000Z | 000101000000Z |
entrustCertDefnInfo - the EntrustCertDefnInfo structure that contains the
certificate-definition policy informationCodingException - thrown if an error occurs while decoding the policy certificate or
any of the policy settings it containspublic EntrustCertInfoId getCertdefn()
The certificate-definition identifier provides a unique identifier for the certificate-definition information
public Name getPolicycertdn()
null is returned.
The certificate-definition policy certificate DN provides the Distinguished Name (DN) of the associated certificate-definition policy certificate.
public Attribute getAttribute(ObjectID oid)
null is returned.public java.lang.Integer getLifetime()
null is returned.
Defines the lifetime of the certificate in months.
public java.lang.Integer getPrivKeyUsage()
null is returned.
Defines the private key usage period of a certificate, as a pecentage of the certificate lifetime.
public boolean isIgnoreUserLife()
false is returned.
Indicates if per user lifetime information should be ignored for this certificate.
public java.lang.String getPublishPolicy()
Defines what certificates are published. Possible values are:
public boolean isPublishRevoked()
true is returned.
Indicates if revoked certificates are published.
public boolean isPublishExpired()
true is returned.
Indicates if expired certificates are published.
public java.lang.String getPublishDN()
Indicates where a certificate should be published. Possible values are:
public boolean isPublishKeyUpd()
false for encryption certificates and
true for verification certificates is returned.
Indicates if a new certificate should be published when an administrator performs a key update operation. For this setting to take effect, the certificate must meet the following criteria:
public java.lang.Boolean getExcPrivKeyUsage()
null is returned.
Indicates if the private key usage extension is excluded.
public java.lang.Boolean getExcBasicConst()
null is returned.
Indicates if the basic constraints extension is excluded.
public java.lang.Boolean getExcCDP()
null is returned.
Indicates if the CDP extension is excluded.
public java.lang.Boolean getExcEntVersInfo()
null is returned.
Indicates if the entrustVersInfo extension is excluded.
public java.lang.Boolean getExcSubjKeyId()
null is returned.
Indicates if the subjectKeyId extension is excluded.
public boolean isExcCertPol()
false is returned.
Indicates if the certificatePolicy extension includes the security policy and/or per user certificate policy OID lists.
public boolean isExcSubjAltName()
false is returned.
Indicates if the subjectAltName extension is excluded.
public boolean isCMPOverride()
true is returned.
Indicates if the contents of the CMP message can override other policy.
public java.lang.Boolean getCMPUnknown()
null is returned.
Indicates if unknown extensions in CMP messages are used.
public boolean isCMPEnforce()
false is returned.
Indicates if client policy is enforced.
public boolean isCMPLatestSign()
true is returned.
Indicates if only the latest certificate can be used for CMP signing.
public boolean isCMPSignCMP()
false is returned.
Indicates if these certificates can be used to sign CMP messages.
public boolean isCMPPublish()
false is returned.
Indicates if the PKI should use the CMP publish flag.
public java.lang.String getKeyType()
null is returned.
Indicates what kind of key should be created. Allowed values are:
public boolean isKeyBackup()
false is returned.
Indicates if private keys should be backed up.
public boolean isKeyClientGen()
true is returned.
Indicates if keys should be generated by the client.
public java.lang.String getKeyUsage()
Indicates what the keys are going to be used for. Possible values are:
public java.lang.String getKeyCSP()
null is returned.
Lists the name of the CSP that will manager the user’s keys. If no value is given, the application will use its default CSP.
public boolean isKeyCSPProtect()
true is returned.
Indicates if keys stored in a CSP should be stored protected or not.
public boolean isKeyCSPForSCLO()
false is returned.
Indicates if a signing keypair can be used for Windows Smart Card Logon.
public boolean isKeyCSPExport()
false is returned.
Indicates if keys stored in a CSP should be marked so that they can be exported or not.
public java.lang.String getPivContainer()
null is returned.
Indicates the PIV container that should be used for storing the key. The following values are possible:
None This certificate definition does not represent a PIV key/certificate PivAuth This certificate definition represents the "PIV Authentication" key/certificate CardAuth This certificate definition represents the "Card Authentication" key/certificate DigSig This certificate definition represents the "Digital Signature" key/certificate KeyMgmt This certificate definition represents the "Key Management" key/certificate
public int getUpdPercent()
Specifies the percent of the certificates lifetime that should pass before the client tries to update the key pair. If a value of 0 is specified, the client should use the default behaviour (i.e., 50% of the private key lifetime capped at a maximum of 100 days before the end of lifetime).
public boolean isUpdDateEnabled()
false is returned.
Indicates to the client if it should check the certificates against the
update date to see if they need to be updated. A value of
true indicates that the check should be performed.
public java.util.Date getUpdDate()
null is returned.
Contains a date. The client should perform a key update on any key pairs whose latest certificate was issued before the given date. If the date is in the future w.r.t the client’s current time, the client should ignore the date and not use it to check for any certificates that need to be updated.
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] getEncodedCertDefnPolicyCert()
null when there is no policy certificate associated
with this certificate definition policy