com.sun.xml.wss.provider
Class WssProviderAuthModule

java.lang.Object
  extended by com.sun.xml.wss.provider.WssProviderAuthModule
All Implemented Interfaces:
ConfigurationStates, ModuleOptions
Direct Known Subclasses:
ClientSecurityAuthModule, ServerSecurityAuthModule

public class WssProviderAuthModule
extends Object
implements ModuleOptions, ConfigurationStates


Field Summary
protected  SecurityPolicy _policy
           
protected  WssProviderSecurityEnvironment _sEnvironment
           
protected  boolean configOptimizeAttribute
           
protected  int optimize
           
static String REQUESTER_ISSUERNAME
           
static String REQUESTER_KEYID
           
static String REQUESTER_SERIAL
           
static String REQUESTER_SUBJECT
           
static String SELF_SUBJECT
           
 
Fields inherited from interface com.sun.xml.wss.provider.ModuleOptions
ALIASES, DEBUG, DYNAMIC_USERNAME_PASSWORD, ENCRYPTION_KEY_ALIAS, PASSWORDS, SECURITY_CONFIGURATION_FILE, SIGNING_KEY_ALIAS
 
Fields inherited from interface com.sun.xml.wss.provider.ConfigurationStates
AUTHENTICATE_RECIPIENT_AUTHENTICATE_SENDER_SIGNATURE, AUTHENTICATE_RECIPIENT_AUTHENTICATE_SENDER_TOKEN, AUTHENTICATE_RECIPIENT_ONLY, AUTHENTICATE_SENDER_SIGNATURE_AUTHENTICATE_RECIPIENT, AUTHENTICATE_SENDER_SIGNATURE_ONLY, AUTHENTICATE_SENDER_TOKEN_AUTHENTICATE_RECIPIENT, AUTHENTICATE_SENDER_TOKEN_ONLY, EMPTY_POLICY_STATE
 
Constructor Summary
WssProviderAuthModule()
           
 
Method Summary
 void initialize(com.sun.enterprise.security.jauth.AuthPolicy requestPolicy, com.sun.enterprise.security.jauth.AuthPolicy responsePolicy, CallbackHandler handler, Map options, boolean isClientAuthModule)
          Initialization method for Client and Server Auth Modules
protected  boolean isOptimized(SOAPMessage msg)
           
 int resolveConfigurationState(com.sun.enterprise.security.jauth.AuthPolicy policy, boolean isRequestPolicy, boolean isClientAuthModule)
          Resolves the state of a policy object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_policy

protected SecurityPolicy _policy

_sEnvironment

protected WssProviderSecurityEnvironment _sEnvironment

REQUESTER_SUBJECT

public static final String REQUESTER_SUBJECT
See Also:
Constant Field Values

REQUESTER_KEYID

public static final String REQUESTER_KEYID
See Also:
Constant Field Values

REQUESTER_ISSUERNAME

public static final String REQUESTER_ISSUERNAME
See Also:
Constant Field Values

REQUESTER_SERIAL

public static final String REQUESTER_SERIAL
See Also:
Constant Field Values

SELF_SUBJECT

public static final String SELF_SUBJECT
See Also:
Constant Field Values

optimize

protected int optimize

configOptimizeAttribute

protected boolean configOptimizeAttribute
Constructor Detail

WssProviderAuthModule

public WssProviderAuthModule()
Method Detail

initialize

public void initialize(com.sun.enterprise.security.jauth.AuthPolicy requestPolicy,
                       com.sun.enterprise.security.jauth.AuthPolicy responsePolicy,
                       CallbackHandler handler,
                       Map options,
                       boolean isClientAuthModule)
Initialization method for Client and Server Auth Modules

Parameters:
requestPolicy - used to validate request on server side and to secure request on client side
responsePolicy - used to validate response on client side and to secure response on server side
handler - CallbackHandler
options - Map of module options
isClientAuthModule - indicates if the current instance is client or server module
Throws:
RuntimeException

resolveConfigurationState

public int resolveConfigurationState(com.sun.enterprise.security.jauth.AuthPolicy policy,
                                     boolean isRequestPolicy,
                                     boolean isClientAuthModule)
Resolves the state of a policy object

Specified by:
resolveConfigurationState in interface ConfigurationStates
Parameters:
policy - AuthPolicy object whose state is to be resolved
Returns:
configurationState returns one of the possible states defined in ConfigurationStates
Throws:
RuntimeException

isOptimized

protected boolean isOptimized(SOAPMessage msg)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.