Package org.xipki.ocsp.server.type
Class ExtendedExtension
- java.lang.Object
-
- org.xipki.ocsp.server.type.ASN1Type
-
- org.xipki.ocsp.server.type.Extension
-
- org.xipki.ocsp.server.type.ExtendedExtension
-
public class ExtendedExtension extends Extension
ASN.1 extension that can be read and written.- Since:
- 2.2.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description ExtendedExtension(OID extnType, boolean critical, byte[] extnValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsExtnValue(byte[] value)intgetEncodedLength()static intgetEncodedLength(OID extnType, boolean critical, int extnValueLength)OIDgetExtnType()intgetExtnValueLength()InputStreamgetExtnValueStream()static ExtendedExtensiongetInstance(byte[] encoded, int from, int len)booleanisCritical()ExtendedExtensionrevertCritical()intwrite(byte[] out, int offset)intwriteExtnValue(byte[] out, int offset)-
Methods inherited from class org.xipki.ocsp.server.type.ASN1Type
arraycopy, getHeaderLen, getLen, writeGeneralizedTime, writeHeader
-
-
-
-
Constructor Detail
-
ExtendedExtension
public ExtendedExtension(OID extnType, boolean critical, byte[] extnValue)
-
-
Method Detail
-
getInstance
public static ExtendedExtension getInstance(byte[] encoded, int from, int len) throws EncodingException
- Throws:
EncodingException
-
getEncodedLength
public int getEncodedLength()
- Specified by:
getEncodedLengthin classASN1Type
-
getEncodedLength
public static int getEncodedLength(OID extnType, boolean critical, int extnValueLength)
-
isCritical
public boolean isCritical()
-
getExtnType
public OID getExtnType()
-
getExtnValueLength
public int getExtnValueLength()
-
getExtnValueStream
public InputStream getExtnValueStream()
-
equalsExtnValue
public boolean equalsExtnValue(byte[] value)
-
writeExtnValue
public int writeExtnValue(byte[] out, int offset)
-
revertCritical
public ExtendedExtension revertCritical()
-
-