Package org.bouncycastle.tls
Class TrustedAuthority
java.lang.Object
org.bouncycastle.tls.TrustedAuthority
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCorrectType(short expectedIdentifierType) voidencode(OutputStream output) Encode thisTrustedAuthorityto anOutputStream.byte[]shortbyte[]org.bouncycastle.asn1.x500.X500Nameprotected static booleanisCorrectType(short identifierType, Object identifier) protected static booleanisSHA1Hash(Object identifier) static TrustedAuthorityparse(InputStream input) Parse aTrustedAuthorityfrom anInputStream.
-
Field Details
-
identifierType
protected short identifierType -
identifier
-
-
Constructor Details
-
TrustedAuthority
-
-
Method Details
-
getIdentifierType
public short getIdentifierType() -
getIdentifier
-
getCertSHA1Hash
public byte[] getCertSHA1Hash() -
getKeySHA1Hash
public byte[] getKeySHA1Hash() -
getX509Name
public org.bouncycastle.asn1.x500.X500Name getX509Name() -
encode
Encode thisTrustedAuthorityto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aTrustedAuthorityfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
TrustedAuthorityobject. - Throws:
IOException
-
checkCorrectType
protected void checkCorrectType(short expectedIdentifierType) -
isCorrectType
-
isSHA1Hash
-