java.lang.Object
iu.crypt.Jwt
iu.auth.config.RemoteAccessToken
- All Implemented Interfaces:
WebToken
Exposes claims specific to authorizing EJB invocation.
-
Field Summary
Fields inherited from class iu.crypt.Jwt
claims, NUMERIC_DATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteAccessTokenBuilder<?> builder()Gets a builder.<T extends IuAuthorizationDetails>
TgetAuthorizationDetails(String type, Class<T> detailInterface) Gets authorization details by typeGetsIuCallerAttributesfrom the token's authorization details.getScope()Gets the authorized scope.Methods inherited from class iu.crypt.Jwt
decryptAndVerify, equals, getAudience, getAuthorizationDetails, getExpires, getIssuedAt, getIssuer, getNonce, getNotBefore, getSubject, getTokenId, hashCode, isExpired, sign, signAndEncrypt, toString, validate, validateClaims, verify
-
Constructor Details
-
RemoteAccessToken
Constructor.- Parameters:
claims- Parsed JSON claims
-
-
Method Details
-
builder
Gets a builder.- Returns:
RemoteAccessTokenBuilder
-
getAuthorizationDetails
public <T extends IuAuthorizationDetails> T getAuthorizationDetails(String type, Class<T> detailInterface) Gets authorization details by type- Type Parameters:
T- details interface type- Parameters:
type- authorization details typedetailInterface- authorization details interface- Returns:
- authorization details
-
getScope
Gets the authorized scope. -
getCallerAttributes
GetsIuCallerAttributesfrom the token's authorization details.- Returns:
URI
-