org.xwiki.crypto.pkix.params.x509certificate.extension
Class X509Rfc822Name

java.lang.Object
  extended by org.xwiki.crypto.pkix.params.x509certificate.extension.X509Rfc822Name
All Implemented Interfaces:
org.xwiki.crypto.pkix.internal.extension.BcGeneralName, X509GeneralName, X509StringGeneralName

@Unstable
public class X509Rfc822Name
extends Object
implements X509StringGeneralName, org.xwiki.crypto.pkix.internal.extension.BcGeneralName

Email address general name.

Since:
5.4
Version:
$Id: a6832b96368377fb449a09e52b6c9d0df167b2d3 $

Constructor Summary
X509Rfc822Name(org.bouncycastle.asn1.x509.GeneralName name)
          Create a new instance from a Bouncy Castle general name.
X509Rfc822Name(javax.mail.internet.InternetAddress address)
          Constructs a RFC 822 general name from an internet address.
X509Rfc822Name(String address)
          Constructs a RFC 822 general name by parsing the given string.
 
Method Summary
 javax.mail.internet.InternetAddress getAddress()
           
 org.bouncycastle.asn1.x509.GeneralName getGeneralName()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface X509StringGeneralName
Returns:
the string representation of this general name.

getGeneralName

public org.bouncycastle.asn1.x509.GeneralName getGeneralName()
Specified by:
getGeneralName in interface org.xwiki.crypto.pkix.internal.extension.BcGeneralName


Copyright © 2004–2014 XWiki. All rights reserved.