Package java.security.cert
Interface Extension
-
- All Known Implementing Classes:
Extension
public interface ExtensionThe Extension part of an X.509 certificate (as specified in RFC 3280 — Internet X.509 Public Key Infrastructure: Certificate and Certificate Revocation List (CRL) Profile):Extension ::= SEQUENCE { extnID OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING }- Since:
- 1.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidencode(OutputStream out)Writes the DER-encoded extension toout.StringgetId()Returns the OID (Object Identifier) for this extension encoded as a string (e.g., "2.5.29.15").byte[]getValue()The DER-encoded value of this extension.booleanisCritical()Returnstrueif this extension is critical.
-
-
-
Method Detail
-
getId
String getId()
Returns the OID (Object Identifier) for this extension encoded as a string (e.g., "2.5.29.15").
-
isCritical
boolean isCritical()
Returnstrueif this extension is critical. If this is true and an implementation does not understand this extension, it must reject it. See RFC 3280 section 4.2 for more information.
-
getValue
byte[] getValue()
The DER-encoded value of this extension.
-
encode
void encode(OutputStream out) throws IOException
Writes the DER-encoded extension toout.- Throws:
IOException- when there is an encoding error or error writing toout
-
-