|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freshcookies.security.cert.CertificateDN
public final class CertificateDN
Lightweight wrapper object for an X.509 certificate distinguished name.
Constructor Summary | |
---|---|
CertificateDN(java.security.Principal dn)
Constructs a new CertificateDN by parsing a supplied Principal from a certificate, such as X509Certificate.getSubjectDN() or
X509Certificate.getIssuerDN() . |
Method Summary | |
---|---|
java.lang.String |
getCommonName()
Returns the common name |
java.lang.String |
getCountry()
Returns the country. |
java.lang.String |
getDomainComponent()
Returns the domain component. |
java.lang.String |
getEmail()
Returns the email. |
java.lang.String |
getLocality()
Returns the locality. |
java.lang.String |
getName()
Returns the distinguished name. |
java.lang.String |
getOrganization()
Returns the organization. |
java.lang.String |
getOrganizationalUnit()
Returns the organizational unit. |
java.lang.String |
getState()
Returns the state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public CertificateDN(java.security.Principal dn)
X509Certificate.getSubjectDN()
or
X509Certificate.getIssuerDN()
.
dn
- a Principal representing a certificate distinguished nameMethod Detail |
---|
public final java.lang.String getCommonName()
public final java.lang.String getCountry()
public final java.lang.String getDomainComponent()
public final java.lang.String getEmail()
public final java.lang.String getLocality()
public final java.lang.String getName()
getName
in interface java.security.Principal
public final java.lang.String getOrganization()
public final java.lang.String getOrganizationalUnit()
public final java.lang.String getState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |