Class MetadataGeneratorParametersImpl
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.installer.metadata.impl.MetadataGeneratorParametersImpl
- All Implemented Interfaces:
MetadataGeneratorParameters
,Component
,DestructableComponent
,InitializableComponent
public class MetadataGeneratorParametersImpl
extends AbstractInitializableComponent
implements MetadataGeneratorParameters
Implementation of
MetadataGeneratorParameters
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
The file with the certificate that TLS uses to 'sign'.The strings with the back channel cert in them (to allow for multiline output).private String
The DNS name.private File
The file with the certificate the IDP uses to encrypt.The strings with the encryption cert in them (to allow for multiline output).private String
The entityID.private String
The scope.private File
The file with the certificate the IDP uses to sign.The strings with the signing certs in them (to allow for multiline output). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Get the (mutli-line)string representation of the back channel cert.getCertificateContents
(File file) Open the file and return the contents and a list of lines.Returns the dnsName (for use in endpoints).Get the (mutli-line) string representations of the encryption certs.Returns the entityID.getScope()
Returns the scope used.Get the (mutli-line) string representation of the signing cert.void
setBackchannelCert
(File file) Set the Backchannel Certificate file.void
setBackchannelCertResource
(Resource resource) Set the Backchannel Certificate.void
setDnsName
(String name) Sets the dns name.void
setEncryptionCertResource
(Resource resource) Set the encryption Certificate file.void
setEntityID
(String id) Sets the entityID.void
Sets the scope.void
setSigningCertResource
(Resource resource) Set the signing Certificate file.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
encryptionCert
The file with the certificate the IDP uses to encrypt. -
encryptionCerts
The strings with the encryption cert in them (to allow for multiline output). -
backChannelCert
The file with the certificate that TLS uses to 'sign'. -
backChannelCerts
The strings with the back channel cert in them (to allow for multiline output). -
signingCert
The file with the certificate the IDP uses to sign. -
signingCerts
The strings with the signing certs in them (to allow for multiline output). -
entityID
The entityID. -
dnsName
The DNS name. -
scope
The scope.
-
-
Constructor Details
-
MetadataGeneratorParametersImpl
public MetadataGeneratorParametersImpl()
-
-
Method Details
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
getEncryptionCert
Get the (mutli-line) string representations of the encryption certs.- Specified by:
getEncryptionCert
in interfaceMetadataGeneratorParameters
- Returns:
- Returns the encryption cert or null if none available.
-
setEncryptionCertResource
Set the encryption Certificate file.- Parameters:
resource
- what to set.
-
getSigningCert
Get the (mutli-line) string representation of the signing cert.- Specified by:
getSigningCert
in interfaceMetadataGeneratorParameters
- Returns:
- Returns the signing cert or null if none available.
-
setSigningCertResource
Set the signing Certificate file.- Parameters:
resource
- what to set.
-
getBackchannelCert
Get the (mutli-line)string representation of the back channel cert.- Specified by:
getBackchannelCert
in interfaceMetadataGeneratorParameters
- Returns:
- Returns the back channel cert or null if non available.
-
setBackchannelCert
Set the Backchannel Certificate file.- Parameters:
file
- what to set.
-
setBackchannelCertResource
Set the Backchannel Certificate.- Parameters:
resource
- what to set.
-
getCertificateContents
Open the file and return the contents and a list of lines.- Parameters:
file
- the file- Returns:
- the contents
- Throws:
IOException
- if badness occurrs.
-
getEntityID
Returns the entityID.- Specified by:
getEntityID
in interfaceMetadataGeneratorParameters
- Returns:
- the entityID.
-
setEntityID
Sets the entityID.- Parameters:
id
- what to set.
-
getDnsName
Returns the dnsName (for use in endpoints).- Specified by:
getDnsName
in interfaceMetadataGeneratorParameters
- Returns:
- the dnsname.
-
setDnsName
Sets the dns name.- Parameters:
name
- what to set.
-
getScope
Returns the scope used.- Specified by:
getScope
in interfaceMetadataGeneratorParameters
- Returns:
- the scope.
-
setScope
Sets the scope.- Parameters:
value
- what to set.
-