Searched defs:authTime (Results 1 - 20 of 20) sorted by relevance

/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMResourceOwner.java40 private final long authTime; field in class:OpenAMResourceOwner
43 * Constructs a new OpenAMResourceOwner with their authTime set to now.
55 * @param authTime Time the resource owner authenticated, in ms.
57 OpenAMResourceOwner(String id, AMIdentity amIdentity, long authTime) { argument
60 this.authTime = TimeUnit.MILLISECONDS.toSeconds(authTime);
76 return authTime;
H A DOpenAMResourceOwnerSessionValidator.java180 final long authTime = stringToDate(token.getProperty(ISAuthConstants.AUTH_INSTANT)).getTime();
182 if (isPastMaxAge(getMaxAge(request), authTime)) {
191 return new OpenAMResourceOwner(id.getName(), id, authTime);
252 * maxAge in seconds, authTime in miliseconds, maxAge not in play if set to -1.
254 private boolean isPastMaxAge(long maxAge, long authTime) throws SSOException { argument
255 return maxAge > -1 && maxAge <= System.currentTimeMillis() - authTime;
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DResourceOwner.java39 private final long authTime; field in class:ResourceOwner
45 * @param authTime Time the resource owner authenticated, in ms.
47 ResourceOwner(String id, AMIdentity amIdentity, long authTime) { argument
50 this.authTime = TimeUnit.MILLISECONDS.toSeconds(authTime);
68 return authTime;
H A DResourceOwnerSessionValidator.java177 final long authTime = stringToDate(token.getProperty(ISAuthConstants.AUTH_INSTANT)).getTime();
179 if (isPastMaxAge(getMaxAge(request), authTime)) {
188 return new ResourceOwner(id.getName(), id, authTime);
273 * maxAge in seconds, authTime in miliseconds, maxAge not in play if set to -1.
275 private boolean isPastMaxAge(long maxAge, long authTime) throws SSOException { argument
276 return maxAge > -1 && maxAge <= currentTimeMillis() - authTime;
H A DStatefulRefreshToken.java105 * @param authTime The end user's original auth time in seconds.
109 String authModules, String acr, String auditId, String authGrantId, long authTime) {
125 setAuthTime(authTime);
350 protected void setAuthTime(long authTime) { argument
351 setStringProperty(AUTH_TIME, valueOf(authTime));;
107 StatefulRefreshToken(String id, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String tokenType, String tokenName, String grantType, String realm, String authModules, String acr, String auditId, String authGrantId, long authTime) argument
H A DStatefulToken.java134 * @param authTime The authentication time.
136 protected void setAuthTime(long authTime) { argument
137 put(AUTH_TIME, authTime);
H A DTokenStore.java101 * @param authTime The end user's authentication time.
108 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
156 * @param authTime The end user's authentication time.
162 String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime)
195 * @param authTime The end user's authentication time.
202 String authGrantId, long authTime)
106 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
161 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime) argument
200 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
H A DStatefulAccessToken.java138 * @param authTime The end user's original auth time.
144 String auditTrackingId, long authTime, JsonValue confirmationKey) {
163 setAuthTime(authTime);
514 protected void setAuthTime(long authTime) { argument
515 setStringProperty(AUTH_TIME, valueOf(authTime));
141 StatefulAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId, long authTime, JsonValue confirmationKey) argument
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/openidconnect/
H A DOpenAMOpenIdConnectToken.java46 * @param authTime The authenticated time.
56 String sub, String aud, String azp, long exp, long iat, long authTime, String nonce, String ops,
58 super(kid, clientSecret, keyPair, algorithm, iss, sub, aud, azp, exp, iat, authTime,
55 OpenAMOpenIdConnectToken(String kid, byte[] clientSecret, KeyPair keyPair, String algorithm, String iss, String sub, String aud, String azp, long exp, long iat, long authTime, String nonce, String ops, String atHash, String cHash, String acr, List<String> amr, String realm) argument
/forgerock/openam-v13/openam-sts/openam-token-service-sts/src/main/java/org/forgerock/openam/sts/tokengeneration/oidc/
H A DSTSOpenIdConnectToken.java133 * @param authTime The authenticated time.
135 STSOpenIdConnectToken setAuthTime(long authTime) { argument
136 put(OAuth2Constants.JWTTokenParams.AUTH_TIME, authTime);
/forgerock/openam-v13/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/oidc/
H A DOpenIdConnectTokenGenerationImplTest.java90 long authTime = System.currentTimeMillis() / 1000;
91 OpenIdConnectTokenGenerationState openIdConnectTokenGenerationState = buildOpenIdConnectTokenGenerationState(authTime);
123 long authTime = System.currentTimeMillis() / 1000;
124 OpenIdConnectTokenGenerationState openIdConnectTokenGenerationState = buildOpenIdConnectTokenGenerationState(authTime);
199 private OpenIdConnectTokenGenerationState buildOpenIdConnectTokenGenerationState(long authTime) { argument
201 .authenticationTimeInSeconds(authTime)
/forgerock/openam/openam-sts/openam-token-service-sts/src/main/java/org/forgerock/openam/sts/tokengeneration/oidc/
H A DSTSOpenIdConnectToken.java133 * @param authTime The authenticated time.
135 STSOpenIdConnectToken setAuthTime(long authTime) { argument
136 put(OAuth2Constants.JWTTokenParams.AUTH_TIME, authTime);
/forgerock/openam/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/oidc/
H A DOpenIdConnectTokenGenerationImplTest.java91 long authTime = currentTimeMillis() / 1000;
92 OpenIdConnectTokenGenerationState openIdConnectTokenGenerationState = buildOpenIdConnectTokenGenerationState(authTime);
124 long authTime = currentTimeMillis() / 1000;
125 OpenIdConnectTokenGenerationState openIdConnectTokenGenerationState = buildOpenIdConnectTokenGenerationState(authTime);
200 private OpenIdConnectTokenGenerationState buildOpenIdConnectTokenGenerationState(long authTime) { argument
202 .authenticationTimeInSeconds(authTime)
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/security/
H A DLibSecurityTokenProvider.java109 protected String authTime = ""; field in class:LibSecurityTokenProvider
157 authTime = tmp[0];
567 Date authInstant = DateUtils.stringToDate(authTime);
/forgerock/openam-v13/openam-oauth2-common/openid-connect-core/src/main/java/org/forgerock/openidconnect/
H A DOpenIdConnectToken.java69 * @param authTime The authenticated time.
78 String sub, String aud, String azp, long exp, long iat, long authTime, String nonce, String ops,
91 setAuthTime(authTime);
173 * @param authTime The authenticated time.
175 private void setAuthTime(long authTime) { argument
176 put(OAuth2Constants.JWTTokenParams.AUTH_TIME, authTime);
77 OpenIdConnectToken(String kid, byte[] clientSecret, KeyPair keyPair, String algorithm, String iss, String sub, String aud, String azp, long exp, long iat, long authTime, String nonce, String ops, String atHash, String cHash, String acr, List<String> amr) argument
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMTokenStore.java97 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
101 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
104 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
131 String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime)
135 request, validatedClaims, authTime);
138 request, validatedClaims, authTime);
153 String authGrantId, long authTime)
157 request, validatedClaims, authGrantId, authTime);
160 request, validatedClaims, authGrantId, authTime);
95 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
130 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime) argument
151 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
H A DStatefulTokenStore.java293 final long authTime = resourceOwner.getAuthTime();
314 authorizationParty, MILLISECONDS.toSeconds(exp), MILLISECONDS.toSeconds(currentTimeMillis), authTime,
524 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
550 grantType, nonce, realm, claims, auditId, authTime, confirmationJwk);
586 String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime)
596 validatedClaims, authGrantId, authTime);
611 String authGrantId, long authTime)
654 realm, authModules, acr, auditId, authGrantId, authTime);
522 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
585 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime) argument
609 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
H A DStatelessTokenStore.java159 String nonce, String claims, OAuth2Request request, long authTime)
195 .claim(AUTH_TIME, authTime);
366 String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime)
376 validatedClaims, authGrantId, authTime);
391 String authGrantId, long authTime)
425 .claim(AUTH_TIME, authTime);
157 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
365 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime) argument
389 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/security/
H A DLibSecurityTokenProvider.java112 protected String authTime = ""; field in class:LibSecurityTokenProvider
160 authTime = tmp[0];
570 Date authInstant = DateUtils.stringToDate(authTime);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openidconnect/
H A DOpenIdConnectToken.java90 * @param authTime The authenticated time.
103 long authTime, String nonce, String ops, String atHash, String cHash, String acr, List<String> amr,
121 setAuthTime(authTime);
239 * @param authTime The authenticated time.
241 private void setAuthTime(long authTime) { argument
242 put(OAuth2Constants.JWTTokenParams.AUTH_TIME, authTime);
100 OpenIdConnectToken(String signingKeyId, String encryptionKeyId, byte[] clientSecret, KeyPair signingKeyPair, Key encryptionKey, String signingAlgorithm, String encryptionAlgorithm, String encryptionMethod, boolean isIDTokenEncryptionEnabled, String iss, String sub, String aud, String azp, long exp, long iat, long authTime, String nonce, String ops, String atHash, String cHash, String acr, List<String> amr, String auditTrackingId, String realm) argument

Completed in 279 milliseconds