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 Details

    • encryptionCert

      private File encryptionCert
      The file with the certificate the IDP uses to encrypt.
    • encryptionCerts

      private List<String> encryptionCerts
      The strings with the encryption cert in them (to allow for multiline output).
    • backChannelCert

      private File backChannelCert
      The file with the certificate that TLS uses to 'sign'.
    • backChannelCerts

      private List<String> backChannelCerts
      The strings with the back channel cert in them (to allow for multiline output).
    • signingCert

      private File signingCert
      The file with the certificate the IDP uses to sign.
    • signingCerts

      private List<String> signingCerts
      The strings with the signing certs in them (to allow for multiline output).
    • entityID

      private String entityID
      The entityID.
    • dnsName

      private String dnsName
      The DNS name.
    • scope

      private String scope
      The scope.
  • Constructor Details

    • MetadataGeneratorParametersImpl

      public MetadataGeneratorParametersImpl()
  • Method Details

    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class AbstractInitializableComponent
      Throws:
      ComponentInitializationException
    • getEncryptionCert

      @Nullable public List<String> getEncryptionCert()
      Get the (mutli-line) string representations of the encryption certs.
      Specified by:
      getEncryptionCert in interface MetadataGeneratorParameters
      Returns:
      Returns the encryption cert or null if none available.
    • setEncryptionCertResource

      public void setEncryptionCertResource(Resource resource)
      Set the encryption Certificate file.
      Parameters:
      resource - what to set.
    • getSigningCert

      @Nullable public List<String> getSigningCert()
      Get the (mutli-line) string representation of the signing cert.
      Specified by:
      getSigningCert in interface MetadataGeneratorParameters
      Returns:
      Returns the signing cert or null if none available.
    • setSigningCertResource

      public void setSigningCertResource(Resource resource)
      Set the signing Certificate file.
      Parameters:
      resource - what to set.
    • getBackchannelCert

      @Nullable public List<String> getBackchannelCert()
      Get the (mutli-line)string representation of the back channel cert.
      Specified by:
      getBackchannelCert in interface MetadataGeneratorParameters
      Returns:
      Returns the back channel cert or null if non available.
    • setBackchannelCert

      public void setBackchannelCert(File file)
      Set the Backchannel Certificate file.
      Parameters:
      file - what to set.
    • setBackchannelCertResource

      public void setBackchannelCertResource(Resource resource)
      Set the Backchannel Certificate.
      Parameters:
      resource - what to set.
    • getCertificateContents

      private List<String> getCertificateContents(File file) throws IOException
      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

      public String getEntityID()
      Returns the entityID.
      Specified by:
      getEntityID in interface MetadataGeneratorParameters
      Returns:
      the entityID.
    • setEntityID

      public void setEntityID(String id)
      Sets the entityID.
      Parameters:
      id - what to set.
    • getDnsName

      public String getDnsName()
      Returns the dnsName (for use in endpoints).
      Specified by:
      getDnsName in interface MetadataGeneratorParameters
      Returns:
      the dnsname.
    • setDnsName

      public void setDnsName(String name)
      Sets the dns name.
      Parameters:
      name - what to set.
    • getScope

      public String getScope()
      Returns the scope used.
      Specified by:
      getScope in interface MetadataGeneratorParameters
      Returns:
      the scope.
    • setScope

      public void setScope(String value)
      Sets the scope.
      Parameters:
      value - what to set.