git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@961
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
public final static String SHIB_ATTRIBUTE_NAMESPACE_URI = "urn:mace:shibboleth:1.0:attributeNamespace:uri";
/** Default lifetime, in seconds **/
- private static long defaultLifetime = 300;
+ private static long defaultLifetime = 1800; // 30 minutes
private ValueHandler valueHandler = new StringValueHandler();
public AAAttribute(String name) throws SAMLException {
}
}
Date now = new Date();
- Date then = new Date(now.getTime() + max);
+ Date then = new Date(now.getTime() + (max * 1000)); //max is in seconds
SAMLAssertion sAssertion = new SAMLAssertion(relyingParty.getIdentityProvider().getProviderId(), now,
then, Collections.singleton(condition), null, Collections.singleton(statement));