Class KeyInfoConfirmationDataImpl
- java.lang.Object
-
- com.sun.identity.saml2.assertion.impl.SubjectConfirmationDataImpl
-
- com.sun.identity.saml2.assertion.impl.KeyInfoConfirmationDataImpl
-
- All Implemented Interfaces:
KeyInfoConfirmationData,SubjectConfirmationData
public class KeyInfoConfirmationDataImpl extends SubjectConfirmationDataImpl implements KeyInfoConfirmationData
TheKeyInfoConfirmationDataconstrains aSubjectConfirmationDataelement to contain one or more <ds:KeyInfo> elements that identify cryptographic keys that are used in some way to authenticate an attesting entity. The particular confirmation method MUST define the exact mechanism by which the confirmation data can be used. The optional attributes defined bySubjectConfirmationDataMAY also appear.
-
-
Field Summary
Fields Modifier and Type Field Description StringelementName-
Fields inherited from class com.sun.identity.saml2.assertion.impl.SubjectConfirmationDataImpl
mutable
-
-
Constructor Summary
Constructors Constructor Description KeyInfoConfirmationDataImpl()KeyInfoConfirmationDataImpl(String xmlString)KeyInfoConfirmationDataImpl(Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetKeyInfo()Returns the list ofKeyInfoobject.voidmakeImmutable()Makes the object immutablevoidsetKeyInfo(List info)Sets the List ofKeyInfoobject.StringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation of the element-
Methods inherited from class com.sun.identity.saml2.assertion.impl.SubjectConfirmationDataImpl
getAddress, getContent, getContentType, getElementValue, getInResponseTo, getNotBefore, getNotOnOrAfter, getRecipient, isMutable, parseAttributes, parseContent, setAddress, setContent, setContentType, setInResponseTo, setNotBefore, setNotOnOrAfter, setRecipient
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.saml2.assertion.SubjectConfirmationData
getAddress, getContent, getContentType, getInResponseTo, getNotBefore, getNotOnOrAfter, getRecipient, isMutable, setAddress, setContent, setContentType, setInResponseTo, setNotBefore, setNotOnOrAfter, setRecipient
-
-
-
-
Field Detail
-
elementName
public final String elementName
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyInfoConfirmationDataImpl
public KeyInfoConfirmationDataImpl()
-
KeyInfoConfirmationDataImpl
public KeyInfoConfirmationDataImpl(Element element) throws SAML2Exception
- Throws:
SAML2Exception
-
KeyInfoConfirmationDataImpl
public KeyInfoConfirmationDataImpl(String xmlString) throws SAML2Exception
- Throws:
SAML2Exception
-
-
Method Detail
-
getKeyInfo
public List getKeyInfo()
Returns the list ofKeyInfoobject.- Specified by:
getKeyInfoin interfaceKeyInfoConfirmationData- Returns:
- a List of
KeyInfoobjects. - See Also:
setKeyInfo(List)
-
setKeyInfo
public void setKeyInfo(List info) throws SAML2Exception
Sets the List ofKeyInfoobject.- Specified by:
setKeyInfoin interfaceKeyInfoConfirmationData- Parameters:
info- List ofKeyInfoobjects.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getKeyInfo()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns a String representation- Specified by:
toXMLStringin interfaceSubjectConfirmationData- Overrides:
toXMLStringin classSubjectConfirmationDataImpl- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Description copied from class:SubjectConfirmationDataImplReturns a String representation of the element- Specified by:
toXMLStringin interfaceSubjectConfirmationData- Overrides:
toXMLStringin classSubjectConfirmationDataImpl- Parameters:
includeNSPrefix- Determines whether the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether the namespace is declared within the Element.- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceSubjectConfirmationData- Overrides:
makeImmutablein classSubjectConfirmationDataImpl
-
-