Class FinalizeJettyBase
java.lang.Object
net.shibboleth.idp.installer.impl.FinalizeJettyBase
Small class to do the post install work on an embedded jetty-base.
(primarily generated by the windows explorer but not tied to that).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidCopy one file to another.private voidIf they don't exists create.private voidCreate the jetty.sslContext.keyStorePath as a copy from the idp.backchannel.keyStorePath file.private voidexecute()Do the work associated with finalizing this install.static voidMain entry.private voidlock down the jetty base directory.private voidRewrite any property names needed.
-
Field Details
-
idpHome
The IdP Installation dir. -
jettyBase
The jetty-base dir.
-
-
Constructor Details
-
FinalizeJettyBase
Constructor.- Throws:
IOException- if we are incorrectly configured
-
-
Method Details
-
execute
Do the work associated with finalizing this install.- Throws:
IOException- if we encounter other issues
-
createDirectories
If they don't exists create.- Throws:
IOException- if we failed to create a directory
-
createP12IdPini
Create the jetty.sslContext.keyStorePath as a copy from the idp.backchannel.keyStorePath file. The create start.d/idp.ini from the start.d.dist/idp.ini.windows but replacing the two password properties- Throws:
IOException- if we trip up.
-
updateIdPini
Rewrite any property names needed.- Throws:
IOException- on a failed update
-
copyFile
Copy one file to another.- Parameters:
fromFile- fromtoFile- to- Throws:
IOException- if it fails.
-
reprotect
private void reprotect()lock down the jetty base directory. -
main
Main entry.- Parameters:
args- As supplied- Throws:
IOException- if there is a problem with the jetty base.
-