org.opensaml.saml2.metadata.impl
Class KeyDescriptorImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.metadata.impl.KeyDescriptorImpl
All Implemented Interfaces:
SAMLObject, KeyDescriptor, ValidatingXMLObject, XMLObject

public class KeyDescriptorImpl
extends AbstractSAMLObject
implements KeyDescriptor

Concrete implementation of KeyDescriptor.


Field Summary
private  XMLObjectChildrenList<EncryptionMethod> encryptionMethods
          Encryption methods supported by the entity.
private  KeyInfo keyInfo
          Key information.
private  UsageType keyUseType
          Key usage type.
 
Fields inherited from interface org.opensaml.saml2.metadata.KeyDescriptor
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME, USE_ATTRIB_NAME
 
Constructor Summary
protected KeyDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 List<EncryptionMethod> getEncryptionMethods()
          Gets the encryption methods that are supported by the entity.
 KeyInfo getKeyInfo()
          Gets information about the key, including the key itself.
 List<XMLObject> getOrderedChildren()
          
 UsageType getUse()
          Gets the use of this key.
 void setKeyInfo(KeyInfo newKeyInfo)
          Sets information about the key, including the key itself.
 void setUse(UsageType newType)
          Sets the use of this key.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, hashCode, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
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

keyUseType

private UsageType keyUseType
Key usage type.


keyInfo

private KeyInfo keyInfo
Key information.


encryptionMethods

private final XMLObjectChildrenList<EncryptionMethod> encryptionMethods
Encryption methods supported by the entity.

Constructor Detail

KeyDescriptorImpl

protected KeyDescriptorImpl(String namespaceURI,
                            String elementLocalName,
                            String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getUse

public UsageType getUse()
Gets the use of this key.

Specified by:
getUse in interface KeyDescriptor
Returns:
the use of this key

setUse

public void setUse(UsageType newType)
Sets the use of this key.

Specified by:
setUse in interface KeyDescriptor
Parameters:
newType - the use of this key

getKeyInfo

public KeyInfo getKeyInfo()
Gets information about the key, including the key itself.

Specified by:
getKeyInfo in interface KeyDescriptor
Returns:
information about the key, including the key itself

setKeyInfo

public void setKeyInfo(KeyInfo newKeyInfo)
Sets information about the key, including the key itself.

Specified by:
setKeyInfo in interface KeyDescriptor
Parameters:
newKeyInfo - information about the key, including the key itself

getEncryptionMethods

public List<EncryptionMethod> getEncryptionMethods()
Gets the encryption methods that are supported by the entity.

Specified by:
getEncryptionMethods in interface KeyDescriptor
Returns:
the encryption methods that are supported by the entity

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.