Package net.shibboleth.idp.installer
Class V4Install.KeyManagement
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.installer.V4Install.KeyManagement
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
- Enclosing class:
- V4Install
Create (if needs be) all the keys needed by an install.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Did we create idp-backchannel.*?private boolean
Did we create idp-encryption.*?private boolean
Did we create sealer.*?private boolean
Did we create idp-signing.*?private final CurrentInstallState
Current Install.private final InstallerProperties
Properties for the job. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
KeyManagement
(InstallerProperties props, CurrentInstallState installState) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute()
Create any keys that are needed.private boolean
generateKey
(String fileBase) Helper method forexecute()
to generate a crt and key file.private void
Helper method forexecute()
to generate the backchannel keystore.private void
Helper method forexecute()
to generate the Sealer.boolean
Did we create idp-backchannel.*?boolean
Did we create idp-encryption.*?boolean
Did we create sealer.*?boolean
Did we create idp-signing.*?Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Field Details
-
installerProps
Properties for the job. -
currentState
Current Install. -
createdSigning
private boolean createdSigningDid we create idp-signing.*? -
createdEncryption
private boolean createdEncryptionDid we create idp-encryption.*? -
createdBackchannel
private boolean createdBackchannelDid we create idp-backchannel.*? -
createdSealer
private boolean createdSealerDid we create sealer.*?
-
-
Constructor Details
-
KeyManagement
protected KeyManagement(@Nonnull InstallerProperties props, @Nonnull CurrentInstallState installState) Constructor.- Parameters:
props
- The properties to drive the installs.installState
- - about where we installing into.
-
-
Method Details
-
execute
protected void execute() throws org.apache.tools.ant.BuildExceptionCreate any keys that are needed.- Throws:
org.apache.tools.ant.BuildException
- if badness occurs
-
generateKey
Helper method forexecute()
to generate a crt and key file.- Parameters:
fileBase
- the partial file name- Returns:
- true iff the file pair was created
- Throws:
org.apache.tools.ant.BuildException
- if badness occurrs.
-
generateKeyStore
private void generateKeyStore()Helper method forexecute()
to generate the backchannel keystore.- Throws:
org.apache.tools.ant.BuildException
- if badness occurs.
-
generateSealer
private void generateSealer()Helper method forexecute()
to generate the Sealer.- Throws:
org.apache.tools.ant.BuildException
- if badness occurs.
-
isCreatedSigning
public boolean isCreatedSigning()Did we create idp-signing.*?- Returns:
- whether we did
-
isCreatedEncryption
public boolean isCreatedEncryption()Did we create idp-encryption.*?- Returns:
- whether we did
-
isCreatedBackchannel
public boolean isCreatedBackchannel()Did we create idp-backchannel.*?- Returns:
- whether we did
-
isCreatedSealer
public boolean isCreatedSealer()Did we create sealer.*?- Returns:
- whether we did
-