org.systinet.wasp.security.ws
Class KeyIdentifiedToken

java.lang.Object
  extended byorg.systinet.wasp.security.ws.ReferrableElement
      extended byorg.systinet.wasp.security.ws.SecurityToken
          extended byorg.systinet.wasp.security.ws.KeyIdentifiedToken

public class KeyIdentifiedToken
extends SecurityToken

This class an wrap a security token, giving a processing hint, that this token should be referenced using key identifier.

Component:
Security-Providers

Field Summary
protected  SecurityToken securityToken
           
 
Fields inherited from class org.systinet.wasp.security.ws.SecurityToken
NULL_PROPERTY_CONF_ARRAY
 
Constructor Summary
KeyIdentifiedToken(SecurityToken securityToken)
          Creates a new key identified security token.
 
Method Summary
protected  java.lang.String getEncryptionMethodHint()
          Returns encryption method hint.
protected  java.lang.String getId()
          Simply delegates to the wrapped token.
protected  java.lang.String getIdForced()
          Simply delegates to the wrapped token.
protected  java.lang.String getKeyEncryptionMethodHint()
          Returns key encryption method hint.
protected  SecurityTokenConf getSecurityTokenConf(MessageConf messageConf)
          Returns security token configuration.
protected  java.lang.String getSignatureMethodHint()
          Returns signature method hint.
protected  java.lang.String getTokenReferenceModeHint(SecurityElement securityElement)
          Returns Constants.STM_KEYIDENTIFIER
 void setId(java.lang.String id)
          Sets id
 
Methods inherited from class org.systinet.wasp.security.ws.SecurityToken
getExternalTokenReferenceModeHint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

securityToken

protected SecurityToken securityToken
Constructor Detail

KeyIdentifiedToken

public KeyIdentifiedToken(SecurityToken securityToken)
Creates a new key identified security token.

Parameters:
securityToken - the token to be referenced using key identifier
Method Detail

getSecurityTokenConf

protected SecurityTokenConf getSecurityTokenConf(MessageConf messageConf)
Returns security token configuration. Simply delegates to the wrapped security token.

Specified by:
getSecurityTokenConf in class SecurityToken
Parameters:
messageConf - the message configuration used for creation of the token configuration
Returns:
the token configuration

getSignatureMethodHint

protected java.lang.String getSignatureMethodHint()
Returns signature method hint. Simply delegates to the wrapped security token.

Specified by:
getSignatureMethodHint in class SecurityToken
Returns:
suggested signature method

getEncryptionMethodHint

protected java.lang.String getEncryptionMethodHint()
Returns encryption method hint. Simply delegates to the wrapped security token.

Specified by:
getEncryptionMethodHint in class SecurityToken
Returns:
suggested encryption method

getKeyEncryptionMethodHint

protected java.lang.String getKeyEncryptionMethodHint()
Returns key encryption method hint. For not transported key, subclasses should return null. Simply delegates to the wrapped security token.

Specified by:
getKeyEncryptionMethodHint in class SecurityToken
Returns:
suggested key encryption method

getTokenReferenceModeHint

protected java.lang.String getTokenReferenceModeHint(SecurityElement securityElement)
Returns Constants.STM_KEYIDENTIFIER

Specified by:
getTokenReferenceModeHint in class SecurityToken
Parameters:
securityElement - not used
Returns:
Constants.STM_KEYIDENTIFIER

getIdForced

protected java.lang.String getIdForced()
Simply delegates to the wrapped token.

Overrides:
getIdForced in class ReferrableElement
Returns:
forced id

getId

protected java.lang.String getId()
Simply delegates to the wrapped token.

Overrides:
getId in class ReferrableElement
Returns:
id

setId

public void setId(java.lang.String id)
Sets id

Overrides:
setId in class ReferrableElement
Parameters:
id - id value