public class CertificateManager extends Object
| Constructor and Description |
|---|
CertificateManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateContainerCertificate(String hostname,
String identifier) |
SecurityStore |
generateContainerKeystore(String hostname,
String requesterId,
String role,
String keystorePass) |
SecurityStore |
generateContainerTruststore(String containerId,
String role,
String truststorePass) |
static File |
getAgentCertficateFilePath(String containerId) |
static File |
getAgentKeyFilePath(String containerId) |
static File |
getContainerKeystoreFilePath(String containerId,
String role) |
static File |
getContainerTruststoreFilePath(String role,
String containerId) |
String |
getServerCert()
Returns server certificate content
|
static File |
getServerCertficateFilePath() |
void |
initialize(MapOperations compOperations) |
void |
initialize(MapOperations compOperations,
String hostname,
String containerId,
String appName)
Verify that root certificate exists, generate it otherwise.
|
void |
setPassphrase(String passphrase) |
SignCertResponse |
signAgentCrt(String agentHostname,
String agentCrtReqContent,
String passphraseAgent)
Signs agent certificate
Adds agent certificate to server keystore
|
public void initialize(MapOperations compOperations) throws SliderException
SliderExceptionpublic void initialize(MapOperations compOperations, String hostname, String containerId, String appName) throws SliderException
SliderExceptionpublic void setPassphrase(String passphrase)
public void generateContainerCertificate(String hostname, String identifier)
public SecurityStore generateContainerKeystore(String hostname, String requesterId, String role, String keystorePass) throws SliderException
SliderExceptionpublic SecurityStore generateContainerTruststore(String containerId, String role, String truststorePass) throws SliderException
SliderExceptionpublic String getServerCert()
public static File getServerCertficateFilePath()
public static File getContainerKeystoreFilePath(String containerId, String role)
public static File getContainerTruststoreFilePath(String role, String containerId)
public SignCertResponse signAgentCrt(String agentHostname, String agentCrtReqContent, String passphraseAgent)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.