|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.security.WSSConfig
WSSConfig
Carries configuration data so the WSS4J spec compliance can be modified in runtime. Configure an instance of this object only if you need WSS4J to emulate certain industry clients or previous OASIS specifications for WS-Security interoperability testing purposes. The default settings follow the latest OASIS and changing anything might violate the OASIS specs. WARNING: changing the default settings will break the compliance with the latest specs. Do this only if you know what you are doing.
Field Summary | |
protected static WSSConfig |
defaultConfig
|
protected boolean |
prefixBSTValues
|
protected boolean |
processNonCompliantMessages
|
protected boolean |
qualifyBSTAttributes
|
protected boolean |
targetIdQualified
|
static int |
TIMESTAMP_IN_HEADER_ELEMENT
|
static int |
TIMESTAMP_IN_SECURITY_ELEMENT
|
protected int |
timestampLocation
|
protected boolean |
wsiBSPCompliant
|
protected java.lang.String |
wsse_ns
|
protected java.lang.String |
wsu_ns
|
Constructor Summary | |
protected |
WSSConfig()
|
Method Summary | |
static WSSConfig |
getDefaultWSConfig()
returns a static WSConfig instance that is configured with the latest OASIS WS-Seurity settings. |
static WSSConfig |
getNewInstance()
|
boolean |
getProcessNonCompliantMessages()
default value is true. |
int |
getTimestampLocation()
default value is TIMESTAMP_IN_SECURITY_ELEMENT (following OASIS 2003 and 2004 specs). |
java.lang.String |
getWsseNS()
default value is WSConstants.WSSE_NS_OASIS_1_0
The WS-Security namespace |
java.lang.String |
getWsuNS()
default value is WSConstants.WSU_NS_OASIS_1_0
The WS-Security utility namespace |
boolean |
isBSTAttributesQualified()
default value is false. |
boolean |
isBSTValuesPrefixed()
default value is false. |
boolean |
isTargetIdQualified()
default value is true. |
boolean |
isWsiBSPCompliant()
Checks if we are in WS-I Basic Security Profile compliance mode |
void |
setBSTAttributesQualified(boolean qualifyBSTAttributes)
specify if the BinarySecurityToken EncodingType and ValueType attributes should be namespace qualified. |
void |
setBSTValuesPrefixed(boolean prefixBSTAttributeValues)
sets and option whether the BinarySecurityToken EncodingType and ValueType attribute values should be prefixed with "wsse" or otherwise qualified with the wsse namespace (false). |
void |
setProcessNonCompliantMessages(boolean attemptProcess)
Sets an option whether WSS4J should attempt to process non-compliant WS-Security messages, such as WS-Security headers with older OASIS spec namespaces. |
void |
setTargetIdQualified(boolean qualifyTargetIdAttribute)
Sets an option whether the Id attribute placed in the signature target should be qualified with the wsu namespace. |
void |
setTimestampLocation(int timestampElementLocation)
Sets an option whether the Iwsu:Timestamp element is placed inside the wsse:Secutriy element. |
void |
setWsiBSPCompliant(boolean wsiBSPCompliant)
Set the WS-I Basic Security Profile compliance mode. |
void |
setWsseNS(java.lang.String wsseNamespace)
Valid values: WSConstants.WSSE_NS_OASIS_2002_07
WSConstants.WSSE_NS_OASIS_2002_12
WSConstants.WSSE_NS_OASIS_2003_06
WSConstants.WSSE_NS_OASIS_1_0 OASIS WS-Security v1.0 (March 2004). |
void |
setWsuNS(java.lang.String wsuNamespace)
Valid values: WSConstants.WSU_NS_OASIS_2002_07
WSConstants.WSU_NS_OASIS_2002_12
WSConstants.WSU_NS_OASIS_2003_06
WSConstants.WSU_NS_OASIS_1_0 OASIS WS-Security v1.0 (March 2004). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static WSSConfig defaultConfig
protected java.lang.String wsse_ns
protected java.lang.String wsu_ns
protected boolean qualifyBSTAttributes
protected boolean prefixBSTValues
protected boolean targetIdQualified
protected boolean wsiBSPCompliant
protected boolean processNonCompliantMessages
public static final int TIMESTAMP_IN_SECURITY_ELEMENT
public static final int TIMESTAMP_IN_HEADER_ELEMENT
protected int timestampLocation
Constructor Detail |
protected WSSConfig()
Method Detail |
public static WSSConfig getNewInstance()
getDefaultWSConfig()
)public static WSSConfig getDefaultWSConfig()
public java.lang.String getWsseNS()
WSConstants.WSSE_NS_OASIS_1_0
The WS-Security namespace
public void setWsseNS(java.lang.String wsseNamespace)
WSConstants.WSSE_NS_OASIS_2002_07
WSConstants.WSSE_NS_OASIS_2002_12
WSConstants.WSSE_NS_OASIS_2003_06
WSConstants.WSSE_NS_OASIS_1_0
OASIS WS-Security v1.0 (March 2004). This is the default and recommended setting
public java.lang.String getWsuNS()
WSConstants.WSU_NS_OASIS_1_0
The WS-Security utility namespace
public void setWsuNS(java.lang.String wsuNamespace)
WSConstants.WSU_NS_OASIS_2002_07
WSConstants.WSU_NS_OASIS_2002_12
WSConstants.WSU_NS_OASIS_2003_06
WSConstants.WSU_NS_OASIS_1_0
OASIS WS-Security v1.0 (March 2004). This is the default and recommended setting
public boolean isBSTAttributesQualified()
public void setBSTAttributesQualified(boolean qualifyBSTAttributes)
public boolean isBSTValuesPrefixed()
public void setBSTValuesPrefixed(boolean prefixBSTAttributeValues)
public boolean isTargetIdQualified()
public void setTargetIdQualified(boolean qualifyTargetIdAttribute)
public int getTimestampLocation()
public void setTimestampLocation(int timestampElementLocation)
public boolean getProcessNonCompliantMessages()
public void setProcessNonCompliantMessages(boolean attemptProcess)
public boolean isWsiBSPCompliant()
public void setWsiBSPCompliant(boolean wsiBSPCompliant)
wsiBSPCompliant
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |