Class X509Rfc822Name
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.x509certificate.extension.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 Summary
Constructors Constructor Description X509Rfc822Name(String address)
Constructs a RFC 822 general name by parsing the given string.X509Rfc822Name(javax.mail.internet.InternetAddress address)
Constructs a RFC 822 general name from an internet address.X509Rfc822Name(org.bouncycastle.asn1.x509.GeneralName name)
Create a new instance from a Bouncy Castle general name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.internet.InternetAddress
getAddress()
org.bouncycastle.asn1.x509.GeneralName
getGeneralName()
String
getName()
-
-
-
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.
-
getName
public String getName()
- Specified by:
getName
in interfaceX509StringGeneralName
- Returns:
- the string representation of this general name.
-
getGeneralName
public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
- Specified by:
getGeneralName
in interfaceorg.xwiki.crypto.pkix.internal.extension.BcGeneralName
- Returns:
- the native Bouncy Castle general name.
-
-