Package org.bouncycastle.tls
Class TrustedAuthority
java.lang.Object
org.bouncycastle.tls.TrustedAuthority
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCorrectType
(short expectedIdentifierType) void
encode
(OutputStream output) Encode thisTrustedAuthority
to anOutputStream
.byte[]
short
byte[]
org.bouncycastle.asn1.x500.X500Name
protected static boolean
isCorrectType
(short identifierType, Object identifier) protected static boolean
isSHA1Hash
(Object identifier) static TrustedAuthority
parse
(InputStream input) Parse aTrustedAuthority
from 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 thisTrustedAuthority
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aTrustedAuthority
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
TrustedAuthority
object. - Throws:
IOException
-
checkCorrectType
protected void checkCorrectType(short expectedIdentifierType) -
isCorrectType
-
isSHA1Hash
-