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 ClassesModifier and TypeClassDescriptionclass
An initializer which knows about our idp.home. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
Ant level override for the back channel certificate.private String
Ant level override for the DNS name.private String
Where idp.home is.private File
Where to put the data.private boolean
Whether to comment out the SAML2 AA port.private boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Where is idp.home.boolean
Returns whether to comment the SAML2 AA endpoint.boolean
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
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
-
Field Details
-
outputFile
Where to put the data. -
idpHome
Where idp.home is. -
backchannelCert
Ant level override for the back channel certificate. -
dnsName
Ant level override for the DNS name. -
saml2AttributeQueryCommented
private boolean saml2AttributeQueryCommentedWhether to comment out the SAML2 AA port. -
saml2LogoutCommented
private boolean saml2LogoutCommentedWhether to comment out the SAML2 SLO endpoints.
-
-
Constructor Details
-
MetadataGeneratorTask
public MetadataGeneratorTask()
-
-
Method Details
-
getIdpHome
Where is idp.home.- Returns:
- Returns idpHome.
-
setIdpHome
Set where where is idp.home.- Parameters:
home
- The idpHome to set.
-
setOutput
Set the output file.- Parameters:
file
- what to set.
-
setBackchannelCert
Set the Backchannel Certificate file.- Parameters:
file
- what to set.
-
setDnsName
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 classorg.apache.tools.ant.Task
-