Class SubjectInformationAccess

java.lang.Object
org.bouncycastle.asn1.ASN1Object
se.swedenconnect.cert.extensions.SubjectInformationAccess
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class SubjectInformationAccess extends org.bouncycastle.asn1.ASN1Object
SubjectInformationAccess X.509 extension implementation for extending Bouncycastle The AuthorityInformationAccess object.
 id-pe-subjectInfoAccess OBJECT IDENTIFIER ::= { id-pe 11 }

 SubjectInfoAccessSyntax  ::=
      SEQUENCE SIZE (1..MAX) OF AccessDescription
 AccessDescription  ::=  SEQUENCE {
       accessMethod          OBJECT IDENTIFIER,
       accessLocation        GeneralName  }

 
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    caRepository access method OID
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    timeStamping access method OID
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubjectInformationAccess(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.x509.GeneralName location)
    create an AuthorityInformationAccess with the oid and location provided.
    SubjectInformationAccess(org.bouncycastle.asn1.x509.AccessDescription description)
    Constructor
    SubjectInformationAccess(org.bouncycastle.asn1.x509.AccessDescription[] accessDescriptions)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
    Creates an instance of SubjectInformationAccess extension
    Creates an instance of SubjectInformationAccess extension
    org.bouncycastle.asn1.ASN1Primitive
     

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • caRepository

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier caRepository
      caRepository access method OID
    • timeStamping

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier timeStamping
      timeStamping access method OID
  • Constructor Details

    • SubjectInformationAccess

      public SubjectInformationAccess(org.bouncycastle.asn1.x509.AccessDescription description)
      Constructor
      Parameters:
      description - access description
    • SubjectInformationAccess

      public SubjectInformationAccess(org.bouncycastle.asn1.x509.AccessDescription[] accessDescriptions)
      Constructor
      Parameters:
      accessDescriptions - access descriptions
    • SubjectInformationAccess

      public SubjectInformationAccess(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.x509.GeneralName location)
      create an AuthorityInformationAccess with the oid and location provided.
      Parameters:
      oid - OID
      location - location
  • Method Details

    • getInstance

      public static SubjectInformationAccess getInstance(Object obj)
      Creates an instance of SubjectInformationAccess extension
      Parameters:
      obj - object holding extension data
      Returns:
      SubjectInformationAccess extension
    • fromExtensions

      public static SubjectInformationAccess fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
      Creates an instance of SubjectInformationAccess extension
      Parameters:
      extensions - extensions data
      Returns:
      SubjectInformationAccess extension
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
    • toString

      public String toString()
      Overrides:
      toString in class Object