Class IdTokenFactory


  • @ApplicationScoped
    @Named
    public class IdTokenFactory
    extends java.lang.Object
    JSON Web Token (JWT) is a compact token format intended for space constrained environments such as HTTP Authorization headers and URI query parameters. JWTs encode claims to be transmitted as a JSON object (as defined in RFC 4627) that is base64url encoded and digitally signed. Signing is accomplished using a JSON Web Signature (JWS). JWTs may also be optionally encrypted using JSON Web Encryption (JWE).
    Version:
    12 Feb, 2020
    Author:
    Javier Rojas Blum, Yuriy Movchan, Yuriy Zabrovarnyy
    • Constructor Summary

      Constructors 
      Constructor Description
      IdTokenFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.jans.as.model.token.JsonWebResponse createJwr​(IAuthorizationGrant grant, java.lang.String nonce, AuthorizationCode authorizationCode, AccessToken accessToken, RefreshToken refreshToken, java.lang.String state, java.util.Set<java.lang.String> scopes, boolean includeIdTokenClaims, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,​java.lang.Void> preProcessing, java.util.function.Function<io.jans.as.model.token.JsonWebResponse,​java.lang.Void> postProcessing, java.lang.String claims)  
      java.util.Map<java.lang.String,​java.lang.Object> getClaims​(io.jans.as.common.model.common.User user, Scope scope)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdTokenFactory

        public IdTokenFactory()
    • Method Detail

      • createJwr

        public io.jans.as.model.token.JsonWebResponse createJwr​(IAuthorizationGrant grant,
                                                                java.lang.String nonce,
                                                                AuthorizationCode authorizationCode,
                                                                AccessToken accessToken,
                                                                RefreshToken refreshToken,
                                                                java.lang.String state,
                                                                java.util.Set<java.lang.String> scopes,
                                                                boolean includeIdTokenClaims,
                                                                java.util.function.Function<io.jans.as.model.token.JsonWebResponse,​java.lang.Void> preProcessing,
                                                                java.util.function.Function<io.jans.as.model.token.JsonWebResponse,​java.lang.Void> postProcessing,
                                                                java.lang.String claims)
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getClaims

        public java.util.Map<java.lang.String,​java.lang.Object> getClaims​(io.jans.as.common.model.common.User user,
                                                                                Scope scope)
                                                                         throws io.jans.as.model.exception.InvalidClaimException,
                                                                                java.text.ParseException
        Throws:
        io.jans.as.model.exception.InvalidClaimException
        java.text.ParseException