Class InstalledMetadataParameters
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.installer.impl.InstalledMetadataParameters
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MetadataGeneratorParameters,TemplateMetadataGeneratorParameters
public class InstalledMetadataParameters
extends AbstractInitializableComponent
implements TemplateMetadataGeneratorParameters
Parameters to metadata generation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionartifact services.private FileThe file with the certificate that TLS uses to 'sign'.private StringThe DNS name.private FileThe file with the certificate the IDP uses to encrypt.private StringThe entityID.private final org.slf4j.LoggerLogger.logout services.private StringThe scope.private FileThe file with the certificate the IDP uses to sign.sso services. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends Endpoint>
Collection<T>convertEndpoints(BiFunction<String, List<String>, T> converter, List<String> protocols, Collection<Pair<String, String>> input) Convert the expressions into endpoints.protected voidprivate StringgetEncodedCertificate(File file) Load a certificate from a file in a standard format and produce a base64-encoded DER string.getLang()getLogo()voidsetBackchannelCertResource(Resource resource) Set the Backchannel Certificate.voidsetDnsName(String name) Sets the dns name.voidsetEncryptionCertResource(Resource resource) Set the encryption Certificate file.voidsetEntityID(String id) Sets the entityID.voidSets the scope.voidsetSigningCertResource(Resource resource) Set the signing Certificate file.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.saml.metadata.generator.impl.MetadataGeneratorParameters
getAttributeAuthorityDescriptor, getCertificates, getContactPersons, getOrganizationName, getOrganizationURL, getSPSSODescriptor, getTagAssignments, isOmitNamespaceDeclarationsMethods inherited from interface org.opensaml.saml.metadata.generator.impl.TemplateMetadataGeneratorParameters
getTemplatePath
-
Field Details
-
log
private final org.slf4j.Logger logLogger. -
encryptionCert
The file with the certificate the IDP uses to encrypt. -
backChannelCert
The file with the certificate that TLS uses to 'sign'. -
signingCert
The file with the certificate the IDP uses to sign. -
entityID
The entityID. -
dnsName
The DNS name. -
scope
The scope. -
logoutServices
logout services. -
ssoServices
sso services. -
artifactServices
artifact services.
-
-
Constructor Details
-
InstalledMetadataParameters
public InstalledMetadataParameters()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
getEncodedCertificate
Load a certificate from a file in a standard format and produce a base64-encoded DER string.- Parameters:
file- certificate file- Returns:
- encoded string
-
setEntityID
Sets the entityID.- Parameters:
id- what to set.
-
setDnsName
Sets the dns name.- Parameters:
name- what to set.
-
setScope
Sets the scope.- Parameters:
value- what to set.
-
getEntityID
- Specified by:
getEntityIDin interfaceMetadataGeneratorParameters
-
getAdditionalNamespaces
- Specified by:
getAdditionalNamespacesin interfaceMetadataGeneratorParameters
-
convertEndpoints
@Nonnull private <T extends Endpoint> Collection<T> convertEndpoints(@Nonnull BiFunction<String, List<String>, T> converter, @Nonnull @Live List<String> protocols, @Nonnull Collection<Pair<String, String>> input) Convert the expressions into endpoints.- Type Parameters:
T- endpoint type- Parameters:
converter- endpoint converterprotocols- accumulator for protocol support valuesinput- raw argument list- Returns:
- converted endpoints
-
getIDPSSODescriptor
- Specified by:
getIDPSSODescriptorin interfaceMetadataGeneratorParameters
-
getSigningCertificates
- Specified by:
getSigningCertificatesin interfaceMetadataGeneratorParameters
-
getEncryptionCertificates
- Specified by:
getEncryptionCertificatesin interfaceMetadataGeneratorParameters
-
getLang
- Specified by:
getLangin interfaceMetadataGeneratorParameters
-
getDisplayName
- Specified by:
getDisplayNamein interfaceMetadataGeneratorParameters
-
getDescription
- Specified by:
getDescriptionin interfaceMetadataGeneratorParameters
-
getLogo
- Specified by:
getLogoin interfaceMetadataGeneratorParameters
-
getScopes
- Specified by:
getScopesin interfaceMetadataGeneratorParameters
-