public class DefaultConditionsProvider extends Object implements ConditionsProvider
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_LIFETIME |
Constructor and Description |
---|
DefaultConditionsProvider() |
Modifier and Type | Method and Description |
---|---|
protected List<org.apache.wss4j.common.saml.bean.AudienceRestrictionBean> |
createAudienceRestrictions(TokenProviderParameters providerParameters)
Create a list of AudienceRestrictions to be added to the Conditions Element of the
issued Assertion.
|
protected String |
extractAddressFromParticipantsEPR(Object participants)
Extract an address from a Participants EPR DOM element
|
org.apache.wss4j.common.saml.bean.ConditionsBean |
getConditions(TokenProviderParameters providerParameters)
Get a ConditionsBean object.
|
long |
getFutureTimeToLive()
Get how long (in seconds) a client-supplied Created Element is allowed to be in the future.
|
long |
getLifetime()
Get the default lifetime in seconds for issued SAML token where requestor
doesn't specify a lifetime element
|
long |
getMaxLifetime()
Get the maximum lifetime in seconds for issued SAML token
if requestor specifies lifetime element
|
boolean |
isAcceptClientLifetime()
Is client lifetime element accepted
Default: false
|
boolean |
isFailLifetimeExceedance()
If requested lifetime exceeds shall it fail (default)
or overwrite with maximum lifetime
|
void |
setAcceptClientLifetime(boolean acceptClientLifetime)
Set whether client lifetime is accepted
|
void |
setFailLifetimeExceedance(boolean failLifetimeExceedance)
If requested lifetime exceeds shall it fail (default)
or overwrite with maximum lifetime
|
void |
setFutureTimeToLive(long futureTimeToLive)
Set how long (in seconds) a client-supplied Created Element is allowed to be in the future.
|
void |
setLifetime(long lifetime)
Set the default lifetime in seconds for issued SAML tokens
|
void |
setMaxLifetime(long maxLifetime)
Set the maximum lifetime in seconds for issued SAML tokens
|
public static final long DEFAULT_MAX_LIFETIME
public long getFutureTimeToLive()
public void setFutureTimeToLive(long futureTimeToLive)
public void setLifetime(long lifetime)
default
- lifetime in secondspublic long getLifetime()
getLifetime
in interface ConditionsProvider
public void setMaxLifetime(long maxLifetime)
maximum
- lifetime in secondspublic long getMaxLifetime()
public boolean isAcceptClientLifetime()
public void setAcceptClientLifetime(boolean acceptClientLifetime)
public boolean isFailLifetimeExceedance()
public void setFailLifetimeExceedance(boolean failLifetimeExceedance)
public org.apache.wss4j.common.saml.bean.ConditionsBean getConditions(TokenProviderParameters providerParameters)
getConditions
in interface ConditionsProvider
protected List<org.apache.wss4j.common.saml.bean.AudienceRestrictionBean> createAudienceRestrictions(TokenProviderParameters providerParameters)
Apache CXF