|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xosd.utilities.security.UserCertificateUtility
public class UserCertificateUtility
The class for obtaining information from the user certificates.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
|
protected java.security.cert.X509Certificate |
userCertificate
|
Constructor Summary | |
---|---|
UserCertificateUtility(java.security.cert.X509Certificate userCertificate)
|
Method Summary | |
---|---|
static java.lang.String |
dumpAttributes(java.security.cert.X509Certificate cert)
|
java.lang.String |
getDistinguishedName()
Extract the distinguished name (DN) from the certificate. |
static java.lang.String |
getDistinguishedName(java.security.cert.X509Certificate userCertificate)
Extract the distinguished name (DN) from the certificate. |
private java.lang.String |
getExtendedAttributeValue(VO.Attribute attribute)
|
java.lang.String |
getGlobalUserIdentity()
Extract the global user identity (GUID) from the user's certificate |
static java.lang.String |
getGlobalUserIdentity(java.security.cert.X509Certificate userCertificate)
Extract the global user identity (GUID) from the user's certificate. |
java.lang.String |
getPrimaryVOGlobalId()
Extract the global ID of the primary VO that the user is a member of. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final org.apache.log4j.Logger logger
protected java.security.cert.X509Certificate userCertificate
Constructor Detail |
---|
public UserCertificateUtility(java.security.cert.X509Certificate userCertificate)
Method Detail |
---|
public java.lang.String getGlobalUserIdentity() throws java.lang.Exception
java.lang.Exception
- if the certificate contains no extended attribute
with GUID.public static java.lang.String getGlobalUserIdentity(java.security.cert.X509Certificate userCertificate) throws java.lang.Exception
userCertificate
- The certificate to extract GUID from.
java.lang.Exception
- if the certificate contains no extended attribute
with GUID.public java.lang.String getDistinguishedName()
public java.lang.String getPrimaryVOGlobalId()
java.lang.Exception
private java.lang.String getExtendedAttributeValue(VO.Attribute attribute)
public static java.lang.String getDistinguishedName(java.security.cert.X509Certificate userCertificate)
userCertificate
- The certificate to obtain the DN from.
public static java.lang.String dumpAttributes(java.security.cert.X509Certificate cert) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |