Class SSLSecurityBuilder
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.model.SSLSecurityBuilder
-
- All Implemented Interfaces:
SecurityCommand.FailureConsumer
- Direct Known Subclasses:
InteractiveSecurityBuilder,KeyStoreNameSecurityBuilder,KeyStorePathSecurityBuilder
public abstract class SSLSecurityBuilder extends Object implements SecurityCommand.FailureConsumer
Base class to build a complete SSL configuration set of requests.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSSLSecurityBuilder.FailureDescProvider
-
Field Summary
Fields Modifier and Type Field Description SSLSecurityBuilder.FailureDescProviderNO_DESC
-
Constructor Summary
Constructors Constructor Description SSLSecurityBuilder()
-
Method Summary
-
-
-
Field Detail
-
NO_DESC
public SSLSecurityBuilder.FailureDescProvider NO_DESC
-
-
Method Detail
-
needKeyStoreStore
protected void needKeyStoreStore(String keyStoreName)
-
addFinalstep
protected void addFinalstep(org.jboss.dmr.ModelNode step, SSLSecurityBuilder.FailureDescProvider ex)
-
setNewTrustStoreName
public void setNewTrustStoreName(String newTrustStoreName)
-
setNewTrustManagerName
public void setNewTrustManagerName(String newTrustManagerName)
-
buildExecutableRequest
public org.jboss.dmr.ModelNode buildExecutableRequest(CommandContext ctx) throws Exception
- Throws:
Exception
-
getTrustedCertificatePath
public File getTrustedCertificatePath()
-
setTrustedCertificatePath
public void setTrustedCertificatePath(File trustedCertificate)
-
setValidateCertificate
public void setValidateCertificate(boolean validateCertificate)
-
addStep
public void addStep(org.jboss.dmr.ModelNode step, SSLSecurityBuilder.FailureDescProvider ex)
-
getServerSSLContext
public ServerSSLContext getServerSSLContext()
-
setSSLContextName
public SSLSecurityBuilder setSSLContextName(String sslContextName)
-
setKeyManagerName
public SSLSecurityBuilder setKeyManagerName(String keyManagerName)
-
buildKeyStore
protected abstract KeyStore buildKeyStore(CommandContext ctx, boolean workaroundComposite) throws Exception
- Throws:
Exception
-
buildRequest
public void buildRequest(CommandContext ctx, boolean buildRequest) throws Exception
- Throws:
Exception
-
buildTrustManager
protected KeyManager buildTrustManager(CommandContext ctx, boolean buildRequest) throws Exception
- Throws:
Exception
-
failureOccured
public void failureOccured(CommandContext ctx, org.jboss.dmr.ModelNode mn) throws org.aesh.command.CommandException
- Specified by:
failureOccuredin interfaceSecurityCommand.FailureConsumer- Throws:
org.aesh.command.CommandException
-
doFailureOccured
protected abstract void doFailureOccured(CommandContext ctx) throws Exception
- Throws:
Exception
-
getTrustStoreName
public String getTrustStoreName()
- Returns:
- the trustStoreName
-
setTrustStoreName
public void setTrustStoreName(String trustStoreName)
- Parameters:
trustStoreName- the trustStoreName to set
-
getTrustStoreFileName
public String getTrustStoreFileName()
- Returns:
- the trustStoreFileName
-
setTrustStoreFileName
public void setTrustStoreFileName(String trustStoreFileName)
- Parameters:
trustStoreFileName- the trustStoreFileName to set
-
setTrustStoreFilePassword
public void setTrustStoreFilePassword(String trustStoreFilePassword)
-
-