| java.lang.Object sun.security.x509.Extension sun.security.x509.PolicyMappingsExtension
PolicyMappingsExtension | public class PolicyMappingsExtension extends Extension implements CertAttrSet(Code) | | Represent the Policy Mappings Extension.
This extension, if present, identifies the certificate policies considered
identical between the issuing and the subject CA.
Extensions are addiitonal attributes which can be inserted in a X509
v3 certificate. For example a "Driving License Certificate" could have
the driving license number as a extension.
Extensions are represented as a sequence of the extension identifier
(Object Identifier), a boolean flag stating whether the extension is to
be treated as being critical and the extension value itself (this is again
a DER encoding of the extension value).
author: Amit Kapoor author: Hemma Prafullchandra version: 1.12 See Also: Extension See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | MAP | final public static String | NAME Attribute names. |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
PolicyMappingsExtension | public PolicyMappingsExtension(Vector map) throws IOException(Code) | | Create a PolicyMappings with the Vector of CertificatePolicyMap.
Parameters: maps - the Vector of CertificatePolicyMap. |
PolicyMappingsExtension | public PolicyMappingsExtension()(Code) | | Create a default PolicyMappingsExtension.
|
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the extension from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on decoding or validity errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Write the extension to the OutputStream.
Parameters: out - the OutputStream to write the extension to. exception: IOException - on encoding errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Returns a printable representation of the policy map.
|
|
|