Package org.gluu.oxauth.model.token
Class JwrService
- java.lang.Object
-
- org.gluu.oxauth.model.token.JwrService
-
@ApplicationScoped 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 JsonWebResponse
createJwr(Client client)
JsonWebResponse
encode(JsonWebResponse jwr, Client client)
Encode means encrypt for Jwe and sign for Jwt, means it's implementaiton specific but we want to abstract it.void
setSubjectIdentifier(JsonWebResponse jwr, IAuthorizationGrant authorizationGrant)
static com.google.common.base.Function<JsonWebResponse,java.lang.Void>
wrapWithSidFunction(com.google.common.base.Function<JsonWebResponse,java.lang.Void> input, java.lang.String outsideSid)
-
-
-
Method Detail
-
encode
public JsonWebResponse encode(JsonWebResponse jwr, 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 JsonWebResponse createJwr(Client client)
-
setSubjectIdentifier
public void setSubjectIdentifier(JsonWebResponse jwr, IAuthorizationGrant authorizationGrant)
-
wrapWithSidFunction
public static com.google.common.base.Function<JsonWebResponse,java.lang.Void> wrapWithSidFunction(com.google.common.base.Function<JsonWebResponse,java.lang.Void> input, java.lang.String outsideSid)
-
-