eu.xtreemos.xosd.security.vops.xacml.request.attributes
Class SubjectCertAttr
java.lang.Object
eu.xtreemos.xosd.security.vops.xacml.request.attributes.Attributes
eu.xtreemos.xosd.security.vops.xacml.request.attributes.SubjectAttr
eu.xtreemos.xosd.security.vops.xacml.request.attributes.SubjectCertAttr
- All Implemented Interfaces:
- IAttributes
public class SubjectCertAttr
- extends SubjectAttr
Holds attributes extracted from user certificate.
- Author:
- ales.cernivec@xlab.si
Field Summary |
private static org.apache.log4j.Logger |
logger
|
private static java.lang.String |
pathToCert
|
Fields inherited from class eu.xtreemos.xosd.security.vops.xacml.request.attributes.Attributes |
attributes |
Constructor Summary |
SubjectCertAttr(java.security.cert.X509Certificate certificate)
Initializes attribute holder with user certificate. |
Method Summary |
void |
initializeAttributes(java.lang.Object source)
Initializes attributes from X509Certificate |
static void |
main(java.lang.String[] args)
Test the ResourceCertAttr extractor: see this#pathToCert } - set
the path to appropriate value! |
static java.util.ArrayList<com.sun.xacml.ctx.Attribute> |
obtainAttributes(java.security.cert.X509Certificate cert)
Obtains attributes from resource certificate (node certificate). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.apache.log4j.Logger logger
pathToCert
private static final java.lang.String pathToCert
- See Also:
- Constant Field Values
SubjectCertAttr
public SubjectCertAttr(java.security.cert.X509Certificate certificate)
throws java.lang.Exception
- Initializes attribute holder with user certificate.
- Parameters:
certificate
-
- Throws:
java.lang.Exception
initializeAttributes
public void initializeAttributes(java.lang.Object source)
throws java.lang.Exception
- Initializes attributes from X509Certificate
- Specified by:
initializeAttributes
in interface IAttributes
- Overrides:
initializeAttributes
in class SubjectAttr
- Throws:
java.lang.Exception
obtainAttributes
public static java.util.ArrayList<com.sun.xacml.ctx.Attribute> obtainAttributes(java.security.cert.X509Certificate cert)
throws java.lang.Exception
- Obtains attributes from resource certificate (node certificate).
- Parameters:
cert
-
- Returns:
-
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Test the ResourceCertAttr extractor: see
this#pathToCert
} - set
the path to appropriate value!
- Parameters:
args
-
- Throws:
java.lang.Exception