Class MetadataGeneratorTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.shibboleth.idp.installer.ant.impl.MetadataGeneratorTask
All Implemented Interfaces:
Cloneable

public class MetadataGeneratorTask
extends org.apache.tools.ant.Task
Task to generate metadata.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    class  MetadataGeneratorTask.Initializer
    An initializer which knows about our idp.home.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private File backchannelCert
    Ant level override for the back channel certificate.
    private String dnsName
    Ant level override for the DNS name.
    private String idpHome
    Where idp.home is.
    private File outputFile
    Where to put the data.
    private boolean saml2AttributeQueryCommented
    Whether to comment out the SAML2 AA port.
    private boolean saml2LogoutCommented
    Whether to comment out the SAML2 SLO endpoints.

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor Description
    MetadataGeneratorTask()  
  • Method Summary

    Modifier and Type Method Description
    void execute()
    String getIdpHome()
    Where is idp.home.
    boolean isSAML2AttributeQueryCommented()
    Returns whether to comment the SAML2 AA endpoint.
    boolean isSAML2LogoutCommented()
    Returns whether to comment the SAML2 Logout endpoints.
    void setBackchannelCert​(File file)
    Set the Backchannel Certificate file.
    void setDnsName​(String name)
    Sets the dns name.
    void setIdpHome​(String home)
    Set where where is idp.home.
    void setOutput​(File file)
    Set the output file.
    void setSAML2AttributeQueryCommented​(boolean asComment)
    Sets whether to comment the SAML2 AA endpoint.
    void setSAML2LogoutCommented​(boolean asComment)
    Sets whether to comment the SAML2 Logout endpoints.

    Methods inherited from class org.apache.tools.ant.Task

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • outputFile

      private File outputFile
      Where to put the data.
    • idpHome

      @Nullable private String idpHome
      Where idp.home is.
    • backchannelCert

      @Nullable private File backchannelCert
      Ant level override for the back channel certificate.
    • dnsName

      @Nullable private String dnsName
      Ant level override for the DNS name.
    • saml2AttributeQueryCommented

      private boolean saml2AttributeQueryCommented
      Whether to comment out the SAML2 AA port.
    • saml2LogoutCommented

      private boolean saml2LogoutCommented
      Whether to comment out the SAML2 SLO endpoints.
  • Constructor Details

    • MetadataGeneratorTask

      public MetadataGeneratorTask()
  • Method Details

    • getIdpHome

      @Nullable public String getIdpHome()
      Where is idp.home.
      Returns:
      Returns idpHome.
    • setIdpHome

      public void setIdpHome​(@Nullable String home)
      Set where where is idp.home.
      Parameters:
      home - The idpHome to set.
    • setOutput

      public void setOutput​(File file)
      Set the output file.
      Parameters:
      file - what to set.
    • setBackchannelCert

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

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

      public boolean isSAML2AttributeQueryCommented()
      Returns whether to comment the SAML2 AA endpoint.
      Returns:
      Returns when to comment the SAML2 AA endpoint.
    • setSAML2AttributeQueryCommented

      public void setSAML2AttributeQueryCommented​(boolean asComment)
      Sets whether to comment the SAML2 AA endpoint.
      Parameters:
      asComment - whether to comment or not.
    • isSAML2LogoutCommented

      public boolean isSAML2LogoutCommented()
      Returns whether to comment the SAML2 Logout endpoints.
      Returns:
      whether to comment the SAML2 Logout endpoints
    • setSAML2LogoutCommented

      public void setSAML2LogoutCommented​(boolean asComment)
      Sets whether to comment the SAML2 Logout endpoints.
      Parameters:
      asComment - whether to comment or not
    • execute

      public void execute()
      Overrides:
      execute in class org.apache.tools.ant.Task