org.systinet.wasp.security.ws.conf
Interface SecurityTokenConf

All Superinterfaces:
ElementConf, OrderedElementConf

public interface SecurityTokenConf
extends OrderedElementConf

Represents security token defined by WS-Security specification. This configuration interface is generic for all security tokens. Configuration contains type of security token and its properties that closely defines tokens.
If security token configuration is a part of MessageConf then it is placed at outgoing message. If security token configuration is placed in ExternalSecurityTokensConf then security token is never placed in outgoing message (e.g., if you do not want disclose your symmetric key or certificate).
The sender and receiver must be able to (de)reference token, thus the correct reference in KeyInfo must be used.

Types of Security tokens

Configuration

Since:
4.6
Component:
Security-Providers

Method Summary
 PropertyConf[] getProperties()
          Gets security token properties.
 java.lang.String getType()
          Gets the type of the security token.
 PropertyConf newProperty()
          Creates new instance of PropertyConf.
 void setProperties(PropertyConf[] propertyConfs)
          Sets properties specific for security token type.
 void setType(java.lang.String type)
          Sets the type of represented token.
 
Methods inherited from interface org.systinet.wasp.security.ws.conf.OrderedElementConf
getOrder, setOrder
 
Methods inherited from interface org.systinet.wasp.security.ws.conf.ElementConf
getWsuId, setWsuId
 

Method Detail

setType

public void setType(java.lang.String type)
Sets the type of represented token. It is mandatory to set the type. Supported types are described in SecurityTokenConf.

Parameters:
type - security token type.
See Also:
getType()

getType

public java.lang.String getType()
Gets the type of the security token.

Returns:
token type
See Also:
setType(java.lang.String)

setProperties

public void setProperties(PropertyConf[] propertyConfs)
Sets properties specific for security token type. Security tokens takes special properties for its initialization. Properties for each type of security token are described in SecurityTokenConf.

Parameters:
propertyConfs - properties
See Also:
getProperties()

getProperties

public PropertyConf[] getProperties()
Gets security token properties.

Returns:
security token properties
See Also:
setProperties(org.systinet.wasp.security.ws.conf.PropertyConf[])

newProperty

public PropertyConf newProperty()
Creates new instance of PropertyConf.

Returns:
instance that is supposed to be filled by valid data
See Also:
setProperties(org.systinet.wasp.security.ws.conf.PropertyConf[])