Class X509Rfc822Name

  • All Implemented Interfaces:
    org.xwiki.crypto.pkix.internal.extension.BcGeneralName, X509GeneralName, X509StringGeneralName

    public class X509Rfc822Name
    extends Object
    implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName
    Email address general name.
    Since:
    5.4
    Version:
    $Id: dd0850adab58f8eafab002a65fab75e8267257c8 $
    • Constructor Detail

      • X509Rfc822Name

        public X509Rfc822Name​(String address)
        Constructs a RFC 822 general name by parsing the given string.
        Parameters:
        address - the address compliant with RFC 822.
      • X509Rfc822Name

        public X509Rfc822Name​(javax.mail.internet.InternetAddress address)
        Constructs a RFC 822 general name from an internet address.
        Parameters:
        address - the address compliant with RFC 822.
      • X509Rfc822Name

        public X509Rfc822Name​(org.bouncycastle.asn1.x509.GeneralName name)
        Create a new instance from a Bouncy Castle general name.
        Parameters:
        name - the Bouncy Castle general name.
    • Method Detail

      • getAddress

        public javax.mail.internet.InternetAddress getAddress()
        Returns:
        the internet address represented by the general name, or null if the address could not be parsed.
      • getGeneralName

        public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
        Specified by:
        getGeneralName in interface org.xwiki.crypto.pkix.internal.extension.BcGeneralName
        Returns:
        the native Bouncy Castle general name.