public class SecurityTokenReference extends Object
SecurityTokenReference
for
referencing the web services tokens that are used for message level
security in the SOAP header.Modifier and Type | Field and Description |
---|---|
static String |
DIRECT_REFERENCE |
static String |
KEYIDENTIFIER_REFERENCE |
static String |
X509DATA_REFERENCE |
Constructor and Description |
---|
SecurityTokenReference() |
SecurityTokenReference(Element element)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addToParent(Element parent)
Adds the securitytoken reference to the parent element.
|
String |
getId()
Returns the security token reference id.
|
KeyIdentifier |
getKeyIdentifier()
Returns the key identifier
|
Reference |
getReference()
Returns the
Reference . |
String |
getReferenceType()
Returns the reference type
|
Element |
getTokenElement(Document doc)
Returns the referenced security token via the Reference URI.
|
org.apache.xml.security.keys.content.X509Data |
getX509IssuerSerial()
Returns the X509data.
|
void |
setId(String id)
Sets the security token reference id.
|
void |
setKeyIdentifier(KeyIdentifier keyIdentifier)
Sets the key identifier.
|
void |
setReference(Reference reference)
Sets the
Reference |
void |
setReferenceType(String referenceType)
Sets the reference type.
|
void |
setX509IssuerSerial(org.apache.xml.security.keys.content.X509Data x509Data)
Sets the X509Data.
|
public static final String KEYIDENTIFIER_REFERENCE
public static final String DIRECT_REFERENCE
public static final String X509DATA_REFERENCE
public SecurityTokenReference()
public SecurityTokenReference(Element element) throws SecurityException
element
- the security token reference.SecurityException
- if the token parsing fails.public String getReferenceType()
public void setReferenceType(String referenceType)
referenceType
- the reference type.public Reference getReference()
Reference
.Reference
.public void setReference(Reference reference)
Reference
reference
- the reference element.public void setKeyIdentifier(KeyIdentifier keyIdentifier)
keyIdentifier
- the key identifier.public KeyIdentifier getKeyIdentifier()
public String getId()
public void setId(String id)
id
- the security token reference id.public org.apache.xml.security.keys.content.X509Data getX509IssuerSerial()
public void setX509IssuerSerial(org.apache.xml.security.keys.content.X509Data x509Data)
x509Data
- the X509 data.public Element getTokenElement(Document doc) throws SecurityException
SecurityException
public void addToParent(Element parent) throws SecurityException
parent
- the parent node that securitytoken reference
needs to be added.SecurityException
- if there is a failure.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.