|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.security.ws.ReferrableElement
org.systinet.wasp.security.ws.SecurityToken
org.systinet.wasp.security.ws.X509Token
Represents WS-Security X.509 token.
See Signature
and EncryptedData
for examples.
Note that in order to be able to receive messages which contain data encrypted
with callee public key, corresponding instance of X509Token
has to be
added to external (context) tokens, for example:
// create X509 token with current credentials X509Token token = new X509Token(); // create context security configuration MessageSecurity ms = new MessageSecurity(); // add the token to external tokens in context security configuration ms.addExternalToken(token); // set context security configuration ms.setContextSecurity(...); //ServiceClient
orServiceEndpoint
instance
UsernameToken
,
SharedSecretToken
Field Summary |
Fields inherited from class org.systinet.wasp.security.ws.SecurityToken |
NULL_PROPERTY_CONF_ARRAY |
Constructor Summary | |
X509Token()
Initializes a new X509 token with current user credentials. |
|
X509Token(java.lang.String alias)
Initializes a new X509 token with the specified alias. |
|
X509Token(java.lang.String alias,
java.lang.String password)
Initializes a new X509 token with the specified alias and password. |
Method Summary | |
protected java.lang.String |
getEncryptionMethodHint()
Returns encryption method hint. |
protected java.lang.String |
getKeyEncryptionMethodHint()
Returns key encryption method hint. |
protected SecurityTokenConf |
getSecurityTokenConf(MessageConf messageConf)
Creates low-level API token configuration. |
protected java.lang.String |
getSignatureMethodHint()
Returns signature method hint. |
protected java.lang.String |
getTokenReferenceModeHint(SecurityElement securityElement)
Returns token reference mode hint. |
Methods inherited from class org.systinet.wasp.security.ws.SecurityToken |
getExternalTokenReferenceModeHint |
Methods inherited from class org.systinet.wasp.security.ws.ReferrableElement |
getId, getIdForced, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X509Token()
public X509Token(java.lang.String alias)
If alias
is null
, token is initialized with received
credentials. This is useful for response encryption with requestor's public key.
It is equivalent to setting the value to "..."
(turnkey alias)
in low-level or persistent configuration.
See MessageSecurity
for more information.
alias
- keystore alias or null
for received credentials
token initializationpublic X509Token(java.lang.String alias, java.lang.String password)
alias
- a keystore aliaspassword
- password which decrypts the private keyMethod Detail |
protected SecurityTokenConf getSecurityTokenConf(MessageConf messageConf)
getSecurityTokenConf
in class SecurityToken
protected java.lang.String getTokenReferenceModeHint(SecurityElement securityElement)
getTokenReferenceModeHint
in class SecurityToken
securityElement
- security element
Constants.STM_REFERENCE
if securityElement
is instance of Signature
or Constants.STM_KEYIDENTIFIER
if securityElement
is instance of EncryptedData
protected java.lang.String getSignatureMethodHint()
getSignatureMethodHint
in class SecurityToken
Constants.ALGO_ID_SIGNATURE_RSA
protected java.lang.String getEncryptionMethodHint()
getEncryptionMethodHint
in class SecurityToken
Constants.ALGO_ID_BLOCKCIPHER_TRIPLEDES
protected java.lang.String getKeyEncryptionMethodHint()
getKeyEncryptionMethodHint
in class SecurityToken
Constants.ALGO_ID_KEYTRANSPORT_RSA15
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |