Package io.jans.as.server.model.token
Class JwrService
- java.lang.Object
-
- io.jans.as.server.model.token.JwrService
-
@Named public class JwrService extends java.lang.Object
- Version:
- April 10, 2020
- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description JwrService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.as.model.token.JsonWebResponse
createJwr(io.jans.as.common.model.registration.Client client)
io.jans.as.model.token.JsonWebResponse
encode(io.jans.as.model.token.JsonWebResponse jwr, io.jans.as.common.model.registration.Client client)
Encode means encrypt for Jwe and sign for Jwt, means it's implementaiton specific but we want to abstract it.void
setSubjectIdentifier(io.jans.as.model.token.JsonWebResponse jwr, IAuthorizationGrant authorizationGrant)
static java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void>
wrapWithSidFunction(java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> input, java.lang.String outsideSid)
-
-
-
Method Detail
-
encode
public io.jans.as.model.token.JsonWebResponse encode(io.jans.as.model.token.JsonWebResponse jwr, io.jans.as.common.model.registration.Client client) throws java.lang.Exception
Encode means encrypt for Jwe and sign for Jwt, means it's implementaiton specific but we want to abstract it.- Returns:
- encoded Jwr
- Throws:
java.lang.Exception
-
createJwr
public io.jans.as.model.token.JsonWebResponse createJwr(io.jans.as.common.model.registration.Client client)
-
setSubjectIdentifier
public void setSubjectIdentifier(io.jans.as.model.token.JsonWebResponse jwr, IAuthorizationGrant authorizationGrant)
-
wrapWithSidFunction
public static java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> wrapWithSidFunction(java.util.function.Function<io.jans.as.model.token.JsonWebResponse,java.lang.Void> input, java.lang.String outsideSid)
-
-