eu.xtreemos.xosd.utilities.security
Class VOMSCommonUtils

java.lang.Object
  extended by eu.xtreemos.xosd.utilities.security.VOMSCommonUtils

public class VOMSCommonUtils
extends java.lang.Object

Map OID to constants, used in XACML requests.

Author:
ales.cernivec@xlab.si

Field Summary
static java.lang.String baseResAttrCert
          Maps from certificate OIDs and extensions to their names
static java.lang.String baseSubIdCert
           
 
Constructor Summary
VOMSCommonUtils()
           
 
Method Summary
static java.lang.String mapOIDtoAttrName(java.lang.String oid)
          Deprecated.  
static XACMLConstants.ResourceConstants mapOIDtoAttrNameResource(java.lang.String oid)
          Maps resource attributes and extension attributes into constants which can be used in XACML context.
static XACMLConstants.SubjectConstants mapOIDtoAttrNameSubject(java.lang.String oid)
          Maps subject attributes and extension attributes into constants which can be used in XACML context.
static java.security.cert.X509Certificate readCert(java.lang.String certFile)
          Reads certificate and returns certificate attributes
static java.security.cert.X509Certificate readCertificate(java.io.InputStreamReader isr)
           
static java.lang.Object readPEM(java.io.InputStreamReader isr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseResAttrCert

public static final java.lang.String baseResAttrCert
Maps from certificate OIDs and extensions to their names

See Also:
Constant Field Values

baseSubIdCert

public static final java.lang.String baseSubIdCert
See Also:
Constant Field Values
Constructor Detail

VOMSCommonUtils

public VOMSCommonUtils()
Method Detail

mapOIDtoAttrName

public static java.lang.String mapOIDtoAttrName(java.lang.String oid)
                                         throws UnknownOIDException
Deprecated. 

Parameters:
oid -
Returns:
Throws:
UnknownOIDException

mapOIDtoAttrNameSubject

public static XACMLConstants.SubjectConstants mapOIDtoAttrNameSubject(java.lang.String oid)
                                                               throws UnknownOIDException
Maps subject attributes and extension attributes into constants which can be used in XACML context.

Parameters:
oid - to map into constant
Returns:
Throws:
UnknownOIDException

mapOIDtoAttrNameResource

public static XACMLConstants.ResourceConstants mapOIDtoAttrNameResource(java.lang.String oid)
                                                                 throws UnknownOIDException
Maps resource attributes and extension attributes into constants which can be used in XACML context.

Parameters:
oid - to map into constant
Returns:
Throws:
UnknownOIDException

readCertificate

public static java.security.cert.X509Certificate readCertificate(java.io.InputStreamReader isr)
                                                          throws java.io.IOException
Throws:
java.io.IOException

readPEM

public static java.lang.Object readPEM(java.io.InputStreamReader isr)
                                throws java.io.IOException
Throws:
java.io.IOException

readCert

public static java.security.cert.X509Certificate readCert(java.lang.String certFile)
Reads certificate and returns certificate attributes

Parameters:
certFile -
Returns:
Certificate