public class SAMLAuthenticationToken extends BaseAuthenticationToken
ALL_REALM, credentials, DEFAULT_REALM, principal, realm
Constructor and Description |
---|
SAMLAuthenticationToken(Principal principal,
org.apache.cxf.ws.security.tokenstore.SecurityToken token,
String realm)
Constructor that only allows SecurityToken objects to be used as the credentials.
|
SAMLAuthenticationToken(Principal principal,
String samlRef,
String realm) |
Modifier and Type | Method and Description |
---|---|
String |
getCredentialsAsXMLString()
Returns the credentials as an XML string suitable for injecting into a STS request.
|
Element |
getSAMLTokenAsElement()
Returns the SAML token as a DOM Element.
|
boolean |
isReference() |
void |
replaceReferenece(org.apache.cxf.ws.security.tokenstore.SecurityToken token) |
getCredentials, getPrincipal, getRealm, isUseWssSts, setCredentials, setUseWssSts
public SAMLAuthenticationToken(Principal principal, org.apache.cxf.ws.security.tokenstore.SecurityToken token, String realm)
principal
- represents thetoken
- realm
- public boolean isReference()
public void replaceReferenece(org.apache.cxf.ws.security.tokenstore.SecurityToken token)
public Element getSAMLTokenAsElement()
public String getCredentialsAsXMLString()
BaseAuthenticationToken
getCredentialsAsXMLString
in class BaseAuthenticationToken
This work is licensed under a Creative Commons Attribution 4.0 International License.