public class KeyIdentifier extends Object
KeyIdentifier
can be be used to insert the
key identifier information into SecurityTokenReference
.Constructor and Description |
---|
KeyIdentifier(Element element)
Constructor
|
KeyIdentifier(String valueType,
String encodingType,
String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addToParent(Element parent)
Adds the key identifier to the parent element.
|
String |
getEncodingType()
Returns the encoding type in the key identifier.
|
String |
getId()
Returns the id.
|
String |
getReferenceValue()
Returns the key identifier reference value.
|
Element |
getTokenElement(Document doc)
Returns the security token that is referenced via the key identifier.
|
String |
getValue()
Return the value in the key identifier.
|
String |
getValueType()
Returns the value type set in the key identifier.
|
X509Certificate |
getX509Certificate()
Returns the
X509Certficate for the value set in the
key identifier. |
void |
setValue(String value)
Sets the value in the key identifier.
|
public KeyIdentifier(String valueType, String encodingType, String value)
valueType
- the value type of the key value.encodingType
- the encoding type of the key valuevalue
- the key identifier value.public KeyIdentifier(Element element) throws SecurityException
element
- KeyIdentifier elementSecurityException
- if the element parsing is failed.public X509Certificate getX509Certificate() throws SecurityException
X509Certficate
for the value set in the
key identifier.SecurityException
public String getValueType()
public String getEncodingType()
public String getReferenceValue()
public String getValue()
public void setValue(String value)
value
- the value in the key identifier.public String getId()
public Element getTokenElement(Document doc) throws SecurityException
doc
- the SOAPMessage XML documentSecurityException
- if there is a failure.public void addToParent(Element parent) throws SecurityException
parent
- the parent node that keyidentifier needs to be added.SecurityException
- if there is a failure.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.