eu.xtreemos.xosd.vo.rca.server
Class RCAServerProcessor
java.lang.Object
eu.xtreemos.xosd.vo.rca.server.RCAServerProcessor
public class RCAServerProcessor
- extends java.lang.Object
The class that implements the processing done by the Resourse Certification
Authority server. This includes processing the certification request by
checking the the public and, if it checks well, signing it with the root
certificate of the global authority.
- Author:
- matej.artac@xlab.si
Field Summary |
protected java.security.cert.X509Certificate |
cdaCert
|
protected java.security.KeyPair |
cdaCertKeyPair
|
static java.lang.String[] |
ciperSuite
|
protected eu.xtreemos.xosd.vo.rca.server.CRCAServerConfig |
config
|
(package private) static org.apache.log4j.Logger |
logger
|
static java.lang.String |
signatureAlgorithm
|
protected eu.xtreemos.xosd.utilities.vo.XosCertGenerator |
xosCertGenerator
|
Constructor Summary |
RCAServerProcessor(java.lang.String keyFileName,
java.lang.String certificateFilename,
char[] privateKeyPassword,
char[] cdaPassword)
|
Method Summary |
protected java.util.HashMap<java.lang.String,java.lang.String> |
getResourceDN(eu.xtreemos.xosd.resmng.data.ResourceDescriptorRecord resourceDescriptor)
Generate the distinguished name (DN) for the resource's certificates. |
eu.xtreemos.xosd.vo.rca.RCASignedResponse |
requestResourceCertificates(org.bouncycastle.jce.PKCS10CertificationRequest resourceRequest,
eu.xtreemos.xosd.resmng.data.ResourceDescriptorRecord resourceDescriptor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
config
protected eu.xtreemos.xosd.vo.rca.server.CRCAServerConfig config
xosCertGenerator
protected eu.xtreemos.xosd.utilities.vo.XosCertGenerator xosCertGenerator
cdaCertKeyPair
protected java.security.KeyPair cdaCertKeyPair
cdaCert
protected java.security.cert.X509Certificate cdaCert
signatureAlgorithm
public static java.lang.String signatureAlgorithm
ciperSuite
public static java.lang.String[] ciperSuite
RCAServerProcessor
public RCAServerProcessor(java.lang.String keyFileName,
java.lang.String certificateFilename,
char[] privateKeyPassword,
char[] cdaPassword)
throws java.lang.Exception
- Throws:
java.lang.Exception
getResourceDN
protected java.util.HashMap<java.lang.String,java.lang.String> getResourceDN(eu.xtreemos.xosd.resmng.data.ResourceDescriptorRecord resourceDescriptor)
throws java.lang.Exception
- Generate the distinguished name (DN) for the resource's certificates.
Currently, common name (CN) is the host's IP. The organisation (O) is
a compulsary field and should be present in the RCA server's config
file. The rest of the elements are optional.
- Parameters:
resourceDescriptor
-
- Returns:
-
- Throws:
java.lang.Exception
requestResourceCertificates
public eu.xtreemos.xosd.vo.rca.RCASignedResponse requestResourceCertificates(org.bouncycastle.jce.PKCS10CertificationRequest resourceRequest,
eu.xtreemos.xosd.resmng.data.ResourceDescriptorRecord resourceDescriptor)
throws java.lang.Exception
- Throws:
java.lang.Exception