eu.xtreemos.xosd.vops.xacml.request.attributes
Class SubjectCertAttr

java.lang.Object
  extended by eu.xtreemos.xosd.vops.xacml.request.attributes.Attributes
      extended by eu.xtreemos.xosd.vops.xacml.request.attributes.SubjectAttr
          extended by eu.xtreemos.xosd.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
 
Fields inherited from class eu.xtreemos.xosd.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 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 eu.xtreemos.xosd.vops.xacml.request.attributes.SubjectAttr
addAttribute, addAttributes, combineAttributes, getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectCertAttr

public SubjectCertAttr(java.security.cert.X509Certificate certificate)
                throws java.lang.Exception
Initializes attribute holder with user certificate.

Parameters:
certificate -
Throws:
java.lang.Exception
Method Detail

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