public class TrustedAuthority
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
identifier |
protected short |
identifierType |
| Constructor and Description |
|---|
TrustedAuthority(short identifierType,
java.lang.Object identifier) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCorrectType(short expectedIdentifierType) |
void |
encode(java.io.OutputStream output)
Encode this
TrustedAuthority to an OutputStream. |
byte[] |
getCertSHA1Hash() |
java.lang.Object |
getIdentifier() |
short |
getIdentifierType() |
byte[] |
getKeySHA1Hash() |
org.bouncycastle.asn1.x500.X500Name |
getX509Name() |
protected static boolean |
isCorrectType(short identifierType,
java.lang.Object identifier) |
protected static boolean |
isSHA1Hash(java.lang.Object identifier) |
static TrustedAuthority |
parse(java.io.InputStream input)
Parse a
TrustedAuthority from an InputStream. |
protected short identifierType
protected java.lang.Object identifier
public TrustedAuthority(short identifierType,
java.lang.Object identifier)
public short getIdentifierType()
public java.lang.Object getIdentifier()
public byte[] getCertSHA1Hash()
public byte[] getKeySHA1Hash()
public org.bouncycastle.asn1.x500.X500Name getX509Name()
public void encode(java.io.OutputStream output)
throws java.io.IOException
TrustedAuthority to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static TrustedAuthority parse(java.io.InputStream input) throws java.io.IOException
TrustedAuthority from an InputStream.input - the InputStream to parse from.TrustedAuthority object.java.io.IOExceptionprotected void checkCorrectType(short expectedIdentifierType)
protected static boolean isCorrectType(short identifierType,
java.lang.Object identifier)
protected static boolean isSHA1Hash(java.lang.Object identifier)