|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wss4j.dom.WSSConfig
public class 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 | |
|---|---|
static DatatypeFactory |
datatypeFactory
|
static WsuIdAllocator |
DEFAULT_ID_ALLOCATOR
|
protected WsuIdAllocator |
idAllocator
|
| Method Summary | |
|---|---|
Action |
getAction(int action)
Lookup action |
boolean |
getAllowNamespaceQualifiedPasswordTypes()
|
WSTimeSource |
getCurrentTime()
|
boolean |
getHandleCustomPasswordTypes()
|
WsuIdAllocator |
getIdAllocator()
|
static WSSConfig |
getNewInstance()
|
boolean |
getPasswordsAreEncoded()
|
Processor |
getProcessor(QName el)
|
String |
getRequiredPasswordType()
|
int |
getTimeStampFutureTTL()
|
int |
getTimeStampTTL()
|
int |
getUtFutureTTL()
|
int |
getUtTTL()
|
Validator |
getValidator(QName el)
|
static void |
init()
|
boolean |
isAddInclusivePrefixes()
Whether to add an InclusiveNamespaces PrefixList as a CanonicalizationMethod child when generating Signatures using WSConstants.C14N_EXCL_OMIT_COMMENTS. |
boolean |
isAllowUsernameTokenNoPassword()
|
boolean |
isEnableSignatureConfirmation()
|
boolean |
isPrecisionInMilliSeconds()
Checks if we need to use milliseconds in timestamps |
boolean |
isTimeStampStrict()
|
boolean |
isValidateSamlSubjectConfirmation()
|
Class<?> |
setAction(int code,
Action action)
Associate an action instance with a specific action code. |
Class<?> |
setAction(int code,
Class<?> clazz)
Associate an action instance with a specific action code. |
void |
setAddInclusivePrefixes(boolean addInclusivePrefixes)
Whether to add an InclusiveNamespaces PrefixList as a CanonicalizationMethod child when generating Signatures using WSConstants.C14N_EXCL_OMIT_COMMENTS. |
void |
setAllowNamespaceQualifiedPasswordTypes(boolean allowNamespaceQualifiedTypes)
|
void |
setAllowUsernameTokenNoPassword(boolean allowUsernameTokenNoPassword)
|
void |
setCurrentTime(WSTimeSource currentTime)
|
void |
setEnableSignatureConfirmation(boolean enableSignatureConfirmation)
|
void |
setHandleCustomPasswordTypes(boolean handleCustomTypes)
|
void |
setIdAllocator(WsuIdAllocator idAllocator)
|
void |
setPasswordsAreEncoded(boolean passwordsAreEncoded)
|
void |
setPrecisionInMilliSeconds(boolean precisionInMilliSeconds)
Set the precision in milliseconds for timestamps |
Class<?> |
setProcessor(QName el,
Class<?> clazz)
Associate a SOAP processor name with a specified SOAP Security header element QName. |
Class<?> |
setProcessor(QName el,
Processor processor)
Associate a SOAP processor name with a specified SOAP Security header element QName. |
void |
setRequiredPasswordType(String requiredPasswordType)
|
void |
setTimeStampFutureTTL(int timeStampFutureTTL)
|
void |
setTimeStampStrict(boolean timeStampStrict)
|
void |
setTimeStampTTL(int timeStampTTL)
|
void |
setUtFutureTTL(int utFutureTTL)
|
void |
setUtTTL(int utTTL)
|
void |
setValidateSamlSubjectConfirmation(boolean validateSamlSubjectConfirmation)
|
Class<?> |
setValidator(QName el,
Class<?> clazz)
Associate a SOAP validator name with a specified SOAP Security header element QName. |
Class<?> |
setValidator(QName el,
Validator validator)
Associate a SOAP validator name with a specified SOAP Security header element QName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DatatypeFactory datatypeFactory
public static final WsuIdAllocator DEFAULT_ID_ALLOCATOR
protected WsuIdAllocator idAllocator
| Method Detail |
|---|
public static void init()
public static WSSConfig getNewInstance()
public boolean isPrecisionInMilliSeconds()
public void setPrecisionInMilliSeconds(boolean precisionInMilliSeconds)
precisionInMilliSeconds - whether to use precision in milliseconds for timestampspublic boolean isEnableSignatureConfirmation()
public void setEnableSignatureConfirmation(boolean enableSignatureConfirmation)
enableSignatureConfirmation - The enableSignatureConfirmation to set.public void setHandleCustomPasswordTypes(boolean handleCustomTypes)
handleCustomTypes - whether to handle custom UsernameToken password types or notpublic boolean getHandleCustomPasswordTypes()
public void setAllowNamespaceQualifiedPasswordTypes(boolean allowNamespaceQualifiedTypes)
allowNamespaceQualifiedTypes - whether (wsse) namespace qualified password types are accepted or notpublic boolean getAllowNamespaceQualifiedPasswordTypes()
public boolean isTimeStampStrict()
public void setTimeStampStrict(boolean timeStampStrict)
timeStampStrict - If true throw an exception on expired request semanticpublic String getRequiredPasswordType()
public void setRequiredPasswordType(String requiredPasswordType)
requiredPasswordType - The required password type when processing
a Username Token.public int getTimeStampTTL()
public void setTimeStampTTL(int timeStampTTL)
timeStampTTL - The new value for timeStampTTLpublic int getTimeStampFutureTTL()
public void setTimeStampFutureTTL(int timeStampFutureTTL)
timeStampFutureTTL - the new value for timeStampFutureTTLpublic void setPasswordsAreEncoded(boolean passwordsAreEncoded)
passwordsAreEncoded - whether passwords are encodedpublic boolean getPasswordsAreEncoded()
public WsuIdAllocator getIdAllocator()
public void setIdAllocator(WsuIdAllocator idAllocator)
public Class<?> setAction(int code,
Action action)
public Class<?> setAction(int code,
Class<?> clazz)
public Action getAction(int action)
throws WSSecurityException
action -
WSSecurityException
public Class<?> setProcessor(QName el,
Processor processor)
public Class<?> setProcessor(QName el,
Class<?> clazz)
public Class<?> setValidator(QName el,
Validator validator)
public Class<?> setValidator(QName el,
Class<?> clazz)
public Validator getValidator(QName el)
throws WSSecurityException
WSSecurityException
public Processor getProcessor(QName el)
throws WSSecurityException
WSSecurityExceptionpublic boolean isAddInclusivePrefixes()
public void setAddInclusivePrefixes(boolean addInclusivePrefixes)
public boolean isAllowUsernameTokenNoPassword()
public void setAllowUsernameTokenNoPassword(boolean allowUsernameTokenNoPassword)
public int getUtTTL()
public void setUtTTL(int utTTL)
public int getUtFutureTTL()
public void setUtFutureTTL(int utFutureTTL)
public boolean isValidateSamlSubjectConfirmation()
public void setValidateSamlSubjectConfirmation(boolean validateSamlSubjectConfirmation)
public WSTimeSource getCurrentTime()
public void setCurrentTime(WSTimeSource currentTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||