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.Object
identifier
protected short
identifierType
-
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 void
checkCorrectType(short expectedIdentifierType)
void
encode(java.io.OutputStream output)
Encode thisTrustedAuthority
to anOutputStream
.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 aTrustedAuthority
from 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.IOException
Encode thisTrustedAuthority
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static TrustedAuthority parse(java.io.InputStream input) throws java.io.IOException
Parse aTrustedAuthority
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
TrustedAuthority
object. - 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)
-
-