edu.vt.middleware.crypt.x509
Class ExtensionFactory

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.ExtensionFactory

public final class ExtensionFactory
extends Object

Creates X.509v3 extension types in the VT Crypt namespace from BouncyCastle ASN1Encodable types.

Version:
$Revision: 2745 $
Author:
Middleware Services

Method Summary
static AccessDescriptionList createAccessDescriptionList(org.bouncycastle.asn1.DEREncodable enc)
          Creates a AccessDescriptionList object from DER data.
static AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.DEREncodable enc)
          Creates a AuthorityKeyIdentifier object from DER data.
static BasicConstraints createBasicConstraints(org.bouncycastle.asn1.DEREncodable enc)
          Creates a BasicConstraints object from DER data.
static DistributionPointList createDistributionPointList(org.bouncycastle.asn1.DEREncodable enc)
          Creates a DistributionPointList object from DER data.
static GeneralName createGeneralName(org.bouncycastle.asn1.DEREncodable enc)
          Creates a GeneralName object from DER data.
static GeneralNameList createGeneralNameList(org.bouncycastle.asn1.DEREncodable enc)
          Creates a GeneralNameList object from DER data.
static Object createInstance(org.bouncycastle.asn1.DEREncodable encodedExtension, ExtensionType type)
          Creates an instance of a VT Crypt X.509v3 extension type from the corresponding Bouncy Castle extension type.
static KeyIdentifier createKeyIdentifier(org.bouncycastle.asn1.DEREncodable enc)
          Creates a KeyIdentifier object from DER data.
static KeyPurposeIdList createKeyPurposeIdList(org.bouncycastle.asn1.DEREncodable enc)
          Creates a KeyPurposeIdList object from DER data.
static KeyUsage createKeyUsage(org.bouncycastle.asn1.DEREncodable enc)
          Creates a KeyUsage object from DER data.
static NoticeReference createNoticeReference(org.bouncycastle.asn1.DEREncodable enc)
          Creates a NoticeReference object from DER data.
static PolicyInformation createPolicyInformation(org.bouncycastle.asn1.DEREncodable enc)
          Creates a PolicyInformation object from DER data.
static PolicyInformationList createPolicyInformationList(org.bouncycastle.asn1.DEREncodable enc)
          Creates a PolicyInformationList object from DER data.
static PolicyQualifierInfo createPolicyQualifierInfo(org.bouncycastle.asn1.DEREncodable enc)
          Creates a PolicyQualifierInfo object from DER data.
static UserNotice createUserNotice(org.bouncycastle.asn1.DEREncodable enc)
          Creates a UserNotice object from DER data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static Object createInstance(org.bouncycastle.asn1.DEREncodable encodedExtension,
                                    ExtensionType type)
Creates an instance of a VT Crypt X.509v3 extension type from the corresponding Bouncy Castle extension type.

Parameters:
type - Type of extension.
encodedExtension - DER encoded data representing the extension field data.
Returns:
An extension type from the edu.vt.middleware.crypt.x509.types package that is semantically equivalent to the given Bouncy Castle object.
Throws:
IllegalArgumentException - If given ASN.1 encodable object is not compatible with the given extension type.

createGeneralNameList

public static GeneralNameList createGeneralNameList(org.bouncycastle.asn1.DEREncodable enc)
Creates a GeneralNameList object from DER data.

Parameters:
enc - DER encoded general names data.
Returns:
Collection of general names.

createGeneralName

public static GeneralName createGeneralName(org.bouncycastle.asn1.DEREncodable enc)
Creates a GeneralName object from DER data.

Parameters:
enc - DER encoded general names data.
Returns:
General name.

createBasicConstraints

public static BasicConstraints createBasicConstraints(org.bouncycastle.asn1.DEREncodable enc)
Creates a BasicConstraints object from DER data.

Parameters:
enc - DER encoded basic constraints data.
Returns:
Basic constraints.

createPolicyInformationList

public static PolicyInformationList createPolicyInformationList(org.bouncycastle.asn1.DEREncodable enc)
Creates a PolicyInformationList object from DER data.

Parameters:
enc - DER encoded policy information data; must be ASN1Sequence.
Returns:
Certificate policy information listing.

createPolicyInformation

public static PolicyInformation createPolicyInformation(org.bouncycastle.asn1.DEREncodable enc)
Creates a PolicyInformation object from DER data.

Parameters:
enc - DER encoded policy information data.
Returns:
Certificate policy information object.

createPolicyQualifierInfo

public static PolicyQualifierInfo createPolicyQualifierInfo(org.bouncycastle.asn1.DEREncodable enc)
Creates a PolicyQualifierInfo object from DER data.

Parameters:
enc - DER encoded policy information data.
Returns:
Certificate policy qualifier.

createUserNotice

public static UserNotice createUserNotice(org.bouncycastle.asn1.DEREncodable enc)
Creates a UserNotice object from DER data.

Parameters:
enc - DER encoded user notice; must be ASN1Sequence.
Returns:
User notice.

createNoticeReference

public static NoticeReference createNoticeReference(org.bouncycastle.asn1.DEREncodable enc)
Creates a NoticeReference object from DER data.

Parameters:
enc - DER encoded user notice; must be either ASN1Sequence or org.bouncycastle.asn1.x509.NoticeReference object.
Returns:
Notice reference.

createKeyIdentifier

public static KeyIdentifier createKeyIdentifier(org.bouncycastle.asn1.DEREncodable enc)
Creates a KeyIdentifier object from DER data.

Parameters:
enc - DER encoded policy information data; must be ASN1OctetString.
Returns:
Key identifier.

createAuthorityKeyIdentifier

public static AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.DEREncodable enc)
Creates a AuthorityKeyIdentifier object from DER data.

Parameters:
enc - DER encoded authority key identifier data.
Returns:
Authority key identifier.

createKeyUsage

public static KeyUsage createKeyUsage(org.bouncycastle.asn1.DEREncodable enc)
Creates a KeyUsage object from DER data.

Parameters:
enc - DER encoded key usage data.
Returns:
Key usage data.

createKeyPurposeIdList

public static KeyPurposeIdList createKeyPurposeIdList(org.bouncycastle.asn1.DEREncodable enc)
Creates a KeyPurposeIdList object from DER data.

Parameters:
enc - DER encoded key purpose identifier data.
Returns:
Key purpose ID list object.

createDistributionPointList

public static DistributionPointList createDistributionPointList(org.bouncycastle.asn1.DEREncodable enc)
Creates a DistributionPointList object from DER data.

Parameters:
enc - DER encoded distribution point list.
Returns:
List of CRL distribution points.

createAccessDescriptionList

public static AccessDescriptionList createAccessDescriptionList(org.bouncycastle.asn1.DEREncodable enc)
Creates a AccessDescriptionList object from DER data.

Parameters:
enc - DER encoded distribution point list.
Returns:
List of access descriptions.


Copyright © 2003-2013 Virginia Tech. All Rights Reserved.