org.systinet.wasp.security.ws
Class SecurityToken

java.lang.Object
  extended byorg.systinet.wasp.security.ws.ReferrableElement
      extended byorg.systinet.wasp.security.ws.SecurityToken
Direct Known Subclasses:
KeyIdentifiedToken, ReferencedToken, SharedSecretToken, UsernameToken, X509Token

public abstract class SecurityToken
extends ReferrableElement

Base class for security tokens. Subclasses are required to implement getSecurityTokenConf(MessageConf), getTokenReferenceModeHint(SecurityElement), getSignatureMethodHint(), getEncryptionMethodHint() and getKeyEncryptionMethodHint() methods.

Since:
4.6
Component:
Security-Providers

Field Summary
protected static PropertyConf[] NULL_PROPERTY_CONF_ARRAY
          empty property array
 
Constructor Summary
protected SecurityToken()
          Constructor.
 
Method Summary
protected abstract  java.lang.String getEncryptionMethodHint()
          Returns encryption method hint.
protected  java.lang.String getExternalTokenReferenceModeHint(SecurityElement securityElement)
          Returns external token reference mode hint.
protected abstract  java.lang.String getKeyEncryptionMethodHint()
          Returns key encryption method hint.
protected abstract  SecurityTokenConf getSecurityTokenConf(MessageConf messageConf)
          Creates low-level API token configuration.
protected abstract  java.lang.String getSignatureMethodHint()
          Returns signature method hint.
protected abstract  java.lang.String getTokenReferenceModeHint(SecurityElement securityElement)
          Returns token reference mode hint.
 
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
 

Field Detail

NULL_PROPERTY_CONF_ARRAY

protected static final PropertyConf[] NULL_PROPERTY_CONF_ARRAY
empty property array

Constructor Detail

SecurityToken

protected SecurityToken()
Constructor.

Method Detail

getSecurityTokenConf

protected abstract SecurityTokenConf getSecurityTokenConf(MessageConf messageConf)
Creates low-level API token configuration.

Returns:
token configuration

getTokenReferenceModeHint

protected abstract java.lang.String getTokenReferenceModeHint(SecurityElement securityElement)
Returns token reference mode hint.

Returns:
suggested token reference mode

getExternalTokenReferenceModeHint

protected java.lang.String getExternalTokenReferenceModeHint(SecurityElement securityElement)
Returns external token reference mode hint.

Returns:
suggested token reference mode; default is null

getSignatureMethodHint

protected abstract java.lang.String getSignatureMethodHint()
Returns signature method hint.

Returns:
suggested signature method

getEncryptionMethodHint

protected abstract java.lang.String getEncryptionMethodHint()
Returns encryption method hint.

Returns:
suggested encryption method

getKeyEncryptionMethodHint

protected abstract java.lang.String getKeyEncryptionMethodHint()
Returns key encryption method hint. For not transported key, subclasses should return null.

Returns:
suggested key encryption method