public abstract class BSTAuthenticationToken extends BaseAuthenticationToken
Modifier and Type | Field and Description |
---|---|
static String |
BASE64_ENCODING |
protected static String |
BST_CREDENTIALS |
static String |
BST_LN |
static String |
BST_NS |
protected static String |
BST_PRINCIPAL |
protected static String |
BST_REALM |
protected static String |
NEWLINE |
static String |
TOKEN_VALUE_SEPARATOR |
protected String |
tokenId |
protected String |
tokenValueType |
ALL_REALM, credentials, DEFAULT_REALM, principal, realm
Constructor and Description |
---|
BSTAuthenticationToken(Object principal,
Object credentials) |
BSTAuthenticationToken(Object principal,
Object credentials,
String realm) |
Modifier and Type | Method and Description |
---|---|
org.apache.cxf.ws.security.sts.provider.model.secext.BinarySecurityTokenType |
createBinarySecurityTokenType(String credentials) |
String |
getBinarySecurityToken() |
String |
getCredentialsAsXMLString()
Returns the credentials as an XML string suitable for injecting into a STS request.
|
String |
getEncodedCredentials() |
static BaseAuthenticationToken |
parse(String stringBST,
boolean isEncoded)
Creates an instance of BaseAuthenticationToken by parsing the given credential string.
|
protected static String |
parseComponent(String s,
String expectedStartsWith) |
void |
setTokenId(String tid) |
void |
setTokenValueType(String ns,
String ln) |
getCredentials, getPrincipal, getRealm, isUseWssSts, setCredentials, setUseWssSts
public static final String BASE64_ENCODING
public static final String BST_NS
public static final String BST_LN
public static final String TOKEN_VALUE_SEPARATOR
protected static final String BST_PRINCIPAL
protected static final String BST_CREDENTIALS
protected static final String BST_REALM
protected static final String NEWLINE
protected String tokenValueType
protected String tokenId
public static BaseAuthenticationToken parse(String stringBST, boolean isEncoded) throws org.apache.wss4j.common.ext.WSSecurityException
stringBST
- unencoded credentials stringorg.apache.wss4j.common.ext.WSSecurityException
public String getCredentialsAsXMLString()
BaseAuthenticationToken
getCredentialsAsXMLString
in class BaseAuthenticationToken
public String getBinarySecurityToken()
public String getEncodedCredentials()
public org.apache.cxf.ws.security.sts.provider.model.secext.BinarySecurityTokenType createBinarySecurityTokenType(String credentials)
public void setTokenId(String tid)
This work is licensed under a Creative Commons Attribution 4.0 International License.