|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.AbstractXMLObject org.opensaml.xml.signature.AbstractSignableXMLObject org.opensaml.xml.AbstractValidatingSignableXMLObject org.opensaml.common.impl.AbstractSignableSAMLObject org.opensaml.saml2.metadata.impl.AffiliationDescriptorImpl
public class AffiliationDescriptorImpl
Concrete implementation of AffiliationDescriptor
.
Field Summary | |
---|---|
private Long |
cacheDuration
cacheDurection attribute |
private Extensions |
extensions
Extensions child |
private String |
id
ID attribute |
private XMLObjectChildrenList<KeyDescriptor> |
keyDescriptors
Key descriptors for this role |
private XMLObjectChildrenList<AffiliateMember> |
members
Members of this affiliation |
private String |
ownerID
ID of the owner of this affiliation |
private AttributeMap |
unknownAttributes
"anyAttribute" attributes |
private org.joda.time.DateTime |
validUntil
validUntil attribute |
Fields inherited from interface org.opensaml.saml2.metadata.AffiliationDescriptor |
---|
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, OWNER_ID_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME |
Fields inherited from interface org.opensaml.saml2.common.TimeBoundSAMLObject |
---|
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME |
Fields inherited from interface org.opensaml.saml2.common.CacheableSAMLObject |
---|
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME |
Constructor Summary | |
---|---|
protected |
AffiliationDescriptorImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor |
Method Summary | |
---|---|
Long |
getCacheDuration()
Gets the maximum time, in milliseconds, that this descriptor should be cached. |
Extensions |
getExtensions()
Gets the Extensions child of this object. |
String |
getID()
Gets the ID of this Descriptor. |
List<KeyDescriptor> |
getKeyDescriptors()
Gets an immutable list of KeyDescriptors for this affiliation. |
List<AffiliateMember> |
getMembers()
Gets a list of the members of this affiliation. |
List<XMLObject> |
getOrderedChildren()
|
String |
getOwnerID()
Gets the ID of the owner of this affiliation. |
String |
getSignatureReferenceID()
Gets the value of the ID attribute for this SAML object which will be used as its signature reference. |
AttributeMap |
getUnknownAttributes()
|
org.joda.time.DateTime |
getValidUntil()
Gets the date until which this descriptor is valid. |
boolean |
isValid()
Checks to see if the current time is past the validUntil time. |
void |
setCacheDuration(Long duration)
Sets the maximum time, in milliseconds, that this descriptor should be cached. |
void |
setExtensions(Extensions extensions)
Sets the Extensions child of this object. |
void |
setID(String newID)
Sets the ID of this descriptor. |
void |
setOwnerID(String newOwnerID)
Sets the ID of the owner of this affiliation. |
void |
setValidUntil(org.joda.time.DateTime validUntil)
Sets the date until which this descriptor is valid. |
Methods inherited from class org.opensaml.common.impl.AbstractSignableSAMLObject |
---|
equals, prepareForAssignment, setSignature |
Methods inherited from class org.opensaml.xml.AbstractValidatingSignableXMLObject |
---|
deregisterValidator, getValidators, registerValidator, validate, validateChildren |
Methods inherited from class org.opensaml.xml.signature.AbstractSignableXMLObject |
---|
getSignature, isSigned |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.xml.signature.SignableXMLObject |
---|
getSignature, isSigned, setSignature |
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject |
---|
deregisterValidator, getValidators, registerValidator, validate |
Methods inherited from interface org.opensaml.xml.XMLObject |
---|
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation |
Field Detail |
---|
private String ownerID
private String id
private org.joda.time.DateTime validUntil
private Long cacheDuration
private Extensions extensions
private final AttributeMap unknownAttributes
private final XMLObjectChildrenList<AffiliateMember> members
private final XMLObjectChildrenList<KeyDescriptor> keyDescriptors
Constructor Detail |
---|
protected AffiliationDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI
- elementLocalName
- namespacePrefix
- Method Detail |
---|
public String getOwnerID()
getOwnerID
in interface AffiliationDescriptor
public void setOwnerID(String newOwnerID)
setOwnerID
in interface AffiliationDescriptor
newOwnerID
- the ID of the owner of this affiliationpublic String getID()
AffiliationDescriptor
getID
in interface AffiliationDescriptor
public void setID(String newID)
AffiliationDescriptor
setID
in interface AffiliationDescriptor
newID
- the ID of this descriptorpublic boolean isValid()
isValid
in interface TimeBoundSAMLObject
public org.joda.time.DateTime getValidUntil()
getValidUntil
in interface TimeBoundSAMLObject
public void setValidUntil(org.joda.time.DateTime validUntil)
setValidUntil
in interface TimeBoundSAMLObject
validUntil
- the date until which this descriptor is validpublic Long getCacheDuration()
getCacheDuration
in interface CacheableSAMLObject
public void setCacheDuration(Long duration)
setCacheDuration
in interface CacheableSAMLObject
duration
- the maximum time that this descriptor should be cachedpublic Extensions getExtensions()
getExtensions
in interface AffiliationDescriptor
public void setExtensions(Extensions extensions) throws IllegalArgumentException
setExtensions
in interface AffiliationDescriptor
extensions
- the Extensions child of this object
IllegalArgumentException
- thrown if the given extensions Object is already a child of another SAMLObjectpublic List<AffiliateMember> getMembers()
getMembers
in interface AffiliationDescriptor
public List<KeyDescriptor> getKeyDescriptors()
getKeyDescriptors
in interface AffiliationDescriptor
KeyDescriptor
s for this affiliationpublic AttributeMap getUnknownAttributes()
getUnknownAttributes
in interface AttributeExtensibleXMLObject
public String getSignatureReferenceID()
getSignatureReferenceID
in interface SignableSAMLObject
public List<XMLObject> getOrderedChildren()
getOrderedChildren
in interface XMLObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |