Top Fields Constructors Methods
org.bouncycastle.tls

public Class TrustedAuthority

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1Encoding, .ASN1Primitive, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
protected Object
protected short

Constructor Summary

AccessConstructor and Description
public
TrustedAuthority(short identifierType, Object identifier)

Method Summary

Modifier and TypeMethod and Description
protected void
checkCorrectType(short expectedIdentifierType)

public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this TrustedAuthority to an OutputStream.

public byte[]
public Object
public short
public byte[]
public X500Name
protected static boolean
isCorrectType(short identifierType, Object identifier)

protected static boolean
isSHA1Hash(Object identifier)

public static TrustedAuthority

Returns:

a TrustedAuthority object.
parse
(InputStream
the InputStream to parse from.
input
)

Parse a TrustedAuthority from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

identifierback to summary
protected Object identifier
identifierTypeback to summary
protected short identifierType

Constructor Detail

TrustedAuthorityback to summary
public TrustedAuthority(short identifierType, Object identifier)

Method Detail

checkCorrectTypeback to summary
protected void checkCorrectType(short expectedIdentifierType)
encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this TrustedAuthority to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getCertSHA1Hashback to summary
public byte[] getCertSHA1Hash()
getIdentifierback to summary
public Object getIdentifier()
getIdentifierTypeback to summary
public short getIdentifierType()
getKeySHA1Hashback to summary
public byte[] getKeySHA1Hash()
getX509Nameback to summary
public X500Name getX509Name()
isCorrectTypeback to summary
protected static boolean isCorrectType(short identifierType, Object identifier)
isSHA1Hashback to summary
protected static boolean isSHA1Hash(Object identifier)
parseback to summary
public static TrustedAuthority parse(InputStream input) throws IOException

Parse a TrustedAuthority from an InputStream.

Parameters
input:InputStream

the InputStream to parse from.

Returns:TrustedAuthority

a TrustedAuthority object.