Class CertDiscoveryMethod

  • All Implemented Interfaces:
    ASN1Choice, ASN1Encodable, Encodable

    public class CertDiscoveryMethod
    extends ASN1Object
    implements ASN1Choice
    The method used to retrieve a related certificate, as defined by draft-ietf-lamps-certdiscovery (Certificate Discovery in PKIX).
         CertDiscoveryMethod ::= CHOICE {
             byUri          [0] IMPLICIT CertLocation,
             byInclusion        Certificate,
             byLocalPolicy      NULL
         }
    
         CertLocation ::= IA5String
     
    Where byUri carries the URI from which the secondary certificate may be downloaded, byInclusion embeds the secondary certificate directly, and byLocalPolicy signals that the relying party is expected to resolve the secondary certificate through local configuration.
    • Method Detail

      • byUri

        public static CertDiscoveryMethod byUri​(java.lang.String uri)
        Create a byUri discovery method carrying the supplied URI.
      • byInclusion

        public static CertDiscoveryMethod byInclusion​(Certificate certificate)
        Create a byInclusion discovery method embedding the supplied certificate directly.
      • byLocalPolicy

        public static CertDiscoveryMethod byLocalPolicy()
        Create a byLocalPolicy discovery method (the wire form is ASN.1 NULL; the relying party resolves the certificate through local configuration).
      • getUri

        public java.lang.String getUri()
        Return the URI carried by a byUri method, or null for the other alternatives.
      • getCertificate

        public Certificate getCertificate()
        Return the certificate carried by a byInclusion method, or null for the other alternatives.