@Deprecated public class MetadataGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
MetadataGenerator.Endpoints
Deprecated.
The end points we understand.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> |
AA_ENDPOINTS
Deprecated.
AttributeAuthority endpoints.
|
(package private) static com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> |
ARTIFACT_ENDPOINTS
Deprecated.
the Artifact endpoints.
|
(package private) static com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> |
BACKCHANNEL_ENDPOINTS
Deprecated.
Those endpoints which require a backchannel.
|
private String |
dnsName
Deprecated.
The Dns Name.
|
private List<List<String>> |
encryptionCerts
Deprecated.
The encryption certificates.
|
private EnumSet<MetadataGenerator.Endpoints> |
endpoints
Deprecated.
Which endpoints to generate.
|
private String |
entityID
Deprecated.
The EntityID.
|
private boolean |
saml2AttributeQueryCommented
Deprecated.
Whether to comment out the SAML2 AA endpoint.
|
private boolean |
saml2LogoutCommented
Deprecated.
Whether to comment out the SAML2 SLO endpoints.
|
private String |
scope
Deprecated.
The Scope.
|
private List<List<String>> |
signingCerts
Deprecated.
The signing certificates.
|
(package private) static com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> |
SLO_ENDPOINTS
Deprecated.
the SLO endpoints.
|
(package private) static com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> |
SSO_ENDPOINTS
Deprecated.
the SSO endpoints.
|
private BufferedWriter |
writer
Deprecated.
Where to write to.
|
| Constructor and Description |
|---|
MetadataGenerator(File file)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeExtensions()
Deprecated.
Write out the close <\Extensions> Element.
|
void |
generate()
Deprecated.
Generate the metadata.
|
String |
getDNSName()
Deprecated.
Get the DNSName.
|
List<List<String>> |
getEncryptionCerts()
Deprecated.
Get the encryptionCerts.
|
EnumSet<MetadataGenerator.Endpoints> |
getEndpoints()
Deprecated.
Get the Endpoints.
|
String |
getEntityID()
Deprecated.
Get the entityID.
|
String |
getScope()
Deprecated.
Get the Scope.
|
List<List<String>> |
getSigningCerts()
Deprecated.
Get the signingCerts.
|
boolean |
isSAML2AttributeQueryCommented()
Deprecated.
Returns whether to comment the SAML2 AA endpoint.
|
boolean |
isSAML2LogoutCommented()
Deprecated.
Returns whether to comment the SAML2 Logout endpoints.
|
protected void |
openExtensions()
Deprecated.
Write the open <Extensions> elements.
|
protected void |
outputEndpoint(MetadataGenerator.Endpoints endpoint)
Deprecated.
Output the SAML for a single endpoint.
|
void |
removeBackChannel()
Deprecated.
remove back channel endpoints.
|
void |
setDNSName(String id)
Deprecated.
Set the DNSName.
|
void |
setEncryptionCerts(List<List<String>> certs)
Deprecated.
Set the encryptionCerts.
|
void |
setEndpoints(EnumSet<MetadataGenerator.Endpoints> points)
Deprecated.
Set the Endpoints.
|
void |
setEntityID(String id)
Deprecated.
Set the entityID.
|
void |
setSAML2AttributeQueryCommented(boolean asComment)
Deprecated.
Sets whether to comment the SAML2 AA endpoint.
|
void |
setSAML2LogoutCommented(boolean asComment)
Deprecated.
Sets whether to comment the SAML2 Logout endpoints.
|
void |
setScope(String id)
Deprecated.
Set the Scope.
|
void |
setSigningCerts(List<List<String>> certs)
Deprecated.
Set the signingCerts.
|
private void |
writeAttributeAuthorityDescriptor()
Deprecated.
Write the <AttributeAuthorityDescriptor>.
|
protected void |
writeComments()
Deprecated.
Add appropriate comments to metadata header.
|
protected void |
writeExtensions()
Deprecated.
use
openExtensions() and closeExtensions() |
protected void |
writeIDPSSO()
Deprecated.
Write the <IDPSSODescriptor>.
|
protected void |
writeKeyDescriptors()
Deprecated.
Write out any <KeyDescriptor>Elements.
|
protected void |
writeKeyDescriptors(List<List<String>> certs,
String use)
Deprecated.
Write out <KeyDescriptor>Elements.
|
protected void |
writeLangAttribute(String language)
Deprecated.
Write the language attribute.
|
protected void |
writeMDUI()
Deprecated.
Write out the <mdui:UIINFO> element and children.
|
protected void |
writeNameSpace(String prefix,
String name)
Deprecated.
Writeout a prefix/namespace pair.
|
protected void |
writeNameSpaceQualified(String nameSpace,
String what)
Deprecated.
Write a namespace:identifier pair.
|
protected void |
writeRoleDescriptor(String name,
List<String> protocols)
Deprecated.
Write out an role descriptor.
|
protected void |
writeScope()
Deprecated.
Write out the <shibmd:Scope> element.
|
static final com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> BACKCHANNEL_ENDPOINTS
static final com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> ARTIFACT_ENDPOINTS
static final com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> SSO_ENDPOINTS
static final com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> SLO_ENDPOINTS
static final com.google.common.collect.ImmutableSet<MetadataGenerator.Endpoints> AA_ENDPOINTS
private EnumSet<MetadataGenerator.Endpoints> endpoints
private String entityID
private String dnsName
private String scope
private boolean saml2AttributeQueryCommented
private boolean saml2LogoutCommented
private final BufferedWriter writer
public MetadataGenerator(@Nonnull File file) throws FileNotFoundException
file - file to output to.FileNotFoundException - if the file cannot be found.public String getEntityID()
public void setEntityID(String id)
id - what to set.public String getScope()
public void setScope(String id)
id - what to set.public String getDNSName()
public void setDNSName(String id)
id - what to set.public List<List<String>> getSigningCerts()
public void setSigningCerts(List<List<String>> certs)
certs - what to set.public List<List<String>> getEncryptionCerts()
public void setEncryptionCerts(List<List<String>> certs)
certs - what to set.public void removeBackChannel()
public EnumSet<MetadataGenerator.Endpoints> getEndpoints()
public void setEndpoints(@Nonnull EnumSet<MetadataGenerator.Endpoints> points)
points - what to set.public boolean isSAML2AttributeQueryCommented()
public void setSAML2AttributeQueryCommented(boolean asComment)
asComment - whether to comment or not.public boolean isSAML2LogoutCommented()
public void setSAML2LogoutCommented(boolean asComment)
asComment - whether to comment or notpublic void generate()
throws IOException
IOException - if we have a failure.protected void writeComments()
throws IOException
IOException - if badness occurs in the writerprotected void writeNameSpace(@Nullable String prefix, @Nonnull String name) throws IOException
prefix - the prefix, or nullname - the namespaceIOException - if badness happensprotected void writeIDPSSO()
throws IOException
IOException - if badness happensprivate void writeAttributeAuthorityDescriptor()
throws IOException
IOException - if badness happensprotected void writeRoleDescriptor(String name, List<String> protocols) throws IOException
name - the nameprotocols - the supported protocolsIOException - when badness happebnsprotected void openExtensions()
throws IOException
IOException - if badness happensprotected void closeExtensions()
throws IOException
IOException - if badness happens@Deprecated protected void writeExtensions() throws IOException
IOException - if badness happensprotected void writeScope()
throws IOException
IOException - if badness happensprotected void writeMDUI()
throws IOException
IOException - if badness happensprotected void writeLangAttribute(String language) throws IOException
language - which languagesIOException - if badness happensprotected void writeKeyDescriptors()
throws IOException
IOException - if badness happensprotected void writeKeyDescriptors(@Nullable List<List<String>> certs, @Nonnull@NotEmpty String use) throws IOException
certs - the certificatesuse - the type - signing or encryptionIOException - if badness happensprotected void outputEndpoint(MetadataGenerator.Endpoints endpoint) throws IOException
endpoint - the typeIOException - if badness happens.protected void writeNameSpaceQualified(@Nonnull String nameSpace, String what) throws IOException
nameSpace - the namespacewhat - the identifierIOException - if badness happensCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.