Package org.bouncycastle.tls
Class TrustedAuthority
- java.lang.Object
-
- org.bouncycastle.tls.TrustedAuthority
-
public class TrustedAuthority extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Objectidentifierprotected shortidentifierType
-
Constructor Summary
Constructors Constructor Description TrustedAuthority(short identifierType, java.lang.Object identifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCorrectType(short expectedIdentifierType)voidencode(java.io.OutputStream output)Encode thisTrustedAuthorityto anOutputStream.byte[]getCertSHA1Hash()java.lang.ObjectgetIdentifier()shortgetIdentifierType()byte[]getKeySHA1Hash()org.bouncycastle.asn1.x500.X500NamegetX509Name()protected static booleanisCorrectType(short identifierType, java.lang.Object identifier)protected static booleanisSHA1Hash(java.lang.Object identifier)static TrustedAuthorityparse(java.io.InputStream input)Parse aTrustedAuthorityfrom anInputStream.
-
-
-
Method Detail
-
getIdentifierType
public short getIdentifierType()
-
getIdentifier
public java.lang.Object getIdentifier()
-
getCertSHA1Hash
public byte[] getCertSHA1Hash()
-
getKeySHA1Hash
public byte[] getKeySHA1Hash()
-
getX509Name
public org.bouncycastle.asn1.x500.X500Name getX509Name()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisTrustedAuthorityto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static TrustedAuthority parse(java.io.InputStream input) throws java.io.IOException
Parse aTrustedAuthorityfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
TrustedAuthorityobject. - Throws:
java.io.IOException
-
checkCorrectType
protected void checkCorrectType(short expectedIdentifierType)
-
isCorrectType
protected static boolean isCorrectType(short identifierType, java.lang.Object identifier)
-
isSHA1Hash
protected static boolean isSHA1Hash(java.lang.Object identifier)
-
-