Package io.quarkus.amazon.lambda.http
Class CognitoPrincipal
java.lang.Object
io.quarkus.amazon.lambda.http.CognitoPrincipal
- All Implemented Interfaces:
Principal,org.eclipse.microprofile.jwt.JsonWebToken
Allocated when cognito is used to authenticate user
Will only be allocated if requestContext.authorizer.claims.cognito:username is set
in the http event sent by API Gateway
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.jwt.JsonWebToken
claim, claim, containsClaim, getClaim, getRawToken, getTokenID
-
Constructor Details
-
CognitoPrincipal
-
-
Method Details
-
getClaimNames
- Specified by:
getClaimNamesin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getClaim
- Specified by:
getClaimin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getIssuer
- Specified by:
getIssuerin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getAudience
- Specified by:
getAudiencein interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getSubject
- Specified by:
getSubjectin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getExpirationTime
public long getExpirationTime()- Specified by:
getExpirationTimein interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getIssuedAtTime
public long getIssuedAtTime()- Specified by:
getIssuedAtTimein interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getGroups
- Specified by:
getGroupsin interfaceorg.eclipse.microprofile.jwt.JsonWebToken
-
getName
-
getClaims
-