Class ServiceEntityDescriptor
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- net.shibboleth.idp.cas.service.impl.ServiceEntityDescriptor
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,SignableSAMLObject,CacheableSAMLObject,TimeBoundSAMLObject,EntityDescriptor,SignableXMLObject
public class ServiceEntityDescriptor extends AbstractXMLObject implements EntityDescriptor
Adapts CAS protocol service metadata onto SAML metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private ServicesvcUnderlying CAS service.-
Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
-
Fields inherited from interface org.opensaml.saml.saml2.metadata.EntityDescriptor
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ELEMENT_QNAME, ENTITY_ID_ATTRIB_NAME, ID_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Fields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
-
-
Constructor Summary
Constructors Constructor Description ServiceEntityDescriptor(Service service)Creates a new instance that wraps the given CAS service.
-
Method Summary
-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
svc
@Nonnull private final Service svc
Underlying CAS service.
-
-
Constructor Detail
-
ServiceEntityDescriptor
public ServiceEntityDescriptor(@Nonnull Service service)Creates a new instance that wraps the given CAS service.- Parameters:
service- CAS service metadata object.
-
-
Method Detail
-
getEntityID
public String getEntityID()
- Specified by:
getEntityIDin interfaceEntityDescriptor
-
setEntityID
public void setEntityID(String id)
ThrowsUnsupportedOperationException.- Specified by:
setEntityIDin interfaceEntityDescriptor
-
getID
public String getID()
- Specified by:
getIDin interfaceEntityDescriptor
-
setID
public void setID(String newID)
ThrowsUnsupportedOperationException.- Specified by:
setIDin interfaceEntityDescriptor
-
getExtensions
public Extensions getExtensions()
- Specified by:
getExtensionsin interfaceEntityDescriptor
-
setExtensions
public void setExtensions(Extensions extensions)
ThrowsUnsupportedOperationException.- Specified by:
setExtensionsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors()
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName typeOrName)
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getRoleDescriptors
public List<RoleDescriptor> getRoleDescriptors(QName typeOrName, String supportedProtocol)
- Specified by:
getRoleDescriptorsin interfaceEntityDescriptor
-
getIDPSSODescriptor
public IDPSSODescriptor getIDPSSODescriptor(String supportedProtocol)
- Specified by:
getIDPSSODescriptorin interfaceEntityDescriptor
-
getSPSSODescriptor
public SPSSODescriptor getSPSSODescriptor(String supportedProtocol)
- Specified by:
getSPSSODescriptorin interfaceEntityDescriptor
-
getAuthnAuthorityDescriptor
public AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAuthnAuthorityDescriptorin interfaceEntityDescriptor
-
getAttributeAuthorityDescriptor
public AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(String supportedProtocol)
- Specified by:
getAttributeAuthorityDescriptorin interfaceEntityDescriptor
-
getPDPDescriptor
public PDPDescriptor getPDPDescriptor(String supportedProtocol)
- Specified by:
getPDPDescriptorin interfaceEntityDescriptor
-
getAffiliationDescriptor
public AffiliationDescriptor getAffiliationDescriptor()
- Specified by:
getAffiliationDescriptorin interfaceEntityDescriptor
-
setAffiliationDescriptor
public void setAffiliationDescriptor(AffiliationDescriptor descriptor)
- Specified by:
setAffiliationDescriptorin interfaceEntityDescriptor
-
getOrganization
public Organization getOrganization()
- Specified by:
getOrganizationin interfaceEntityDescriptor
-
setOrganization
public void setOrganization(Organization organization)
ThrowsUnsupportedOperationException.- Specified by:
setOrganizationin interfaceEntityDescriptor
-
getContactPersons
public List<ContactPerson> getContactPersons()
- Specified by:
getContactPersonsin interfaceEntityDescriptor
-
getAdditionalMetadataLocations
public List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
- Specified by:
getAdditionalMetadataLocationsin interfaceEntityDescriptor
-
getUnknownAttributes
@Nonnull public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
getCacheDuration
public Duration getCacheDuration()
- Specified by:
getCacheDurationin interfaceCacheableSAMLObject
-
setCacheDuration
public void setCacheDuration(Duration duration)
ThrowsUnsupportedOperationException.- Specified by:
setCacheDurationin interfaceCacheableSAMLObject
-
getSignatureReferenceID
@Nullable public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceIDin interfaceSignableSAMLObject
-
isSigned
public boolean isSigned()
- Specified by:
isSignedin interfaceSignableXMLObject
-
getSignature
@Nullable public Signature getSignature()
- Specified by:
getSignaturein interfaceSignableXMLObject
-
setSignature
public void setSignature(@Nullable Signature newSignature)ThrowsUnsupportedOperationException.- Specified by:
setSignaturein interfaceSignableXMLObject
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceTimeBoundSAMLObject
-
getValidUntil
public Instant getValidUntil()
- Specified by:
getValidUntilin interfaceTimeBoundSAMLObject
-
setValidUntil
public void setValidUntil(Instant validUntil)
- Specified by:
setValidUntilin interfaceTimeBoundSAMLObject
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-