public class PKCS12ExportPermission extends V3Extension
PKCS12ExportPermission extension.
The PKCS12ExportPermission extension is used by Entrust
to mark private keys that are allowed to be exported into PKCS#12 format.
PKCS12Writer| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid |
critical| Constructor and Description |
|---|
PKCS12ExportPermission()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exportPermitted()
Returns whether PKCS-12 export is permitted on the key matching
this certificate.
|
ObjectID |
getObjectID()
Returns the object ID of this
PKCS12ExportPermission extension |
int |
hashCode()
Returns a hashcode for this extension.
|
void |
init(ASN1Object obj)
Inits this
PKCS12ExportPermission implementation with an ASN1Object
representing the value of this extension. |
ASN1Object |
toASN1Object()
Writes the extension as an ASN.1 object
|
java.lang.String |
toString()
Returns a string that represents the contents of this
PKCS12ExportPermission extension. |
getName, isCritical, setCriticalpublic static final ObjectID oid
public PKCS12ExportPermission()
Generating a new PKCS12ExportPermission extension is not supported.
This class is provided for compatibility with existing certificates only.
public ObjectID getObjectID()
PKCS12ExportPermission extensiongetObjectID in class V3Extensionpublic boolean exportPermitted()
truepublic void init(ASN1Object obj) throws X509ExtensionException
PKCS12ExportPermission implementation with an ASN1Object
representing the value of this extension.
The ASN1Object is the extensionValue from ASN.1 type "Extension" representing
the exportPermitted and exportWarning values of this extension.
init in class V3Extensionobj - the extensionValue as an ASN1ObjectX509ExtensionException - if the extension could not be parsedpublic ASN1Object toASN1Object()
toASN1Object in class V3Extensionpublic int hashCode()
hashCode in class V3Extensionpublic java.lang.String toString()
PKCS12ExportPermission extension.toString in class java.lang.Object