public class WSSConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static DatatypeFactory |
datatypeFactory |
static WsuIdAllocator |
DEFAULT_ID_ALLOCATOR |
protected WsuIdAllocator |
idAllocator |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static boolean |
isAddJceProviders() |
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.
|
static void |
setAddJceProviders(boolean addJceProviders) |
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.
|
public static final DatatypeFactory datatypeFactory
public static final WsuIdAllocator DEFAULT_ID_ALLOCATOR
protected WsuIdAllocator idAllocator
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 - WSSecurityExceptionpublic 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
WSSecurityExceptionpublic 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)
public static boolean isAddJceProviders()
public static void setAddJceProviders(boolean addJceProviders)
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.