public class CertificateTransparencyRedaction extends V3Extension
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid |
static java.lang.String |
REDACTION_TOKEN
The String that replaces the redacted labels
|
critical| Constructor and Description |
|---|
CertificateTransparencyRedaction()
The default constructor to the V3Extension
|
CertificateTransparencyRedaction(int[] redactionList)
The constuctor for Certificate Transparency redaction
|
| Modifier and Type | Method and Description |
|---|---|
ObjectID |
getObjectID()
Return the Object Identifier
|
int[] |
getRedactedList() |
int |
hashCode()
The Hash code use for storage in a hash table
|
void |
init(ASN1Object asn)
This method initializes the redaction extension by decoding it from the ASN.1 sequence
|
SubjectAltName |
processRedaction(SubjectAltName san)
Process the redaction by apply it to the supplied SubjectAltName class and
return a new SubjectAltName that has been redacted.
|
SubjectAltName |
processRedaction(SubjectAltName san,
java.lang.String token)
Process the redaction by apply it to the supplied SubjectAltName class and
return a new SubjectAltName that has been redacted.
|
ASN1Object |
toASN1Object()
This method encodes the redaction extension into an ASN.1 sequence of Integers.
|
getName, isCritical, setCriticalpublic static final ObjectID oid
public static final java.lang.String REDACTION_TOKEN
public CertificateTransparencyRedaction()
public CertificateTransparencyRedaction(int[] redactionList)
redactionList - The ordered list of integers representing the SAN entries
that need to be redactedpublic void init(ASN1Object asn) throws X509ExtensionException
init in class V3Extensionasn - the extension value as ASN1ObjectX509ExtensionException - if the extension could not parse the ASN1Objectpublic ASN1Object toASN1Object() throws X509ExtensionException
toASN1Object in class V3ExtensionX509ExtensionException - if the extension could not be createdpublic SubjectAltName processRedaction(SubjectAltName san)
(PRIVATE)as the redaction token.
san - The SubjectAltName to redactpublic SubjectAltName processRedaction(SubjectAltName san, java.lang.String token)
san - The SubjectAltName to redacttoken - The redaction tokenpublic int[] getRedactedList()
public ObjectID getObjectID()
getObjectID in class V3Extensionpublic int hashCode()
hashCode in class V3Extension