| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final Optional | |
| private final Optional | |
| private static final Logger | |
| private final String | |
| private final SessionKeySupplier |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Duration | Returns: token validity durationGet the duration the token is valid, from issue time to expiration time. |
| private boolean | Returns: true if the sameone public key a, RSAPublicKey the other one b)Checks if two public keys are equal |
| public boolean | |
| pack-priv boolean | |
| private static Optional | Returns: JCE Public Key if JWK is presentJWT claims jwtClaimSet)Convert the JWK to JCE |
| JWK | back to summary |
|---|---|
| private static final String JWK | |
| jwkAsJce | back to summary |
|---|---|
| private final Optional<RSAPublicKey> jwkAsJce | |
| jwt | back to summary |
|---|---|
| private final Optional<JwtClaimsSet> jwt | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| securityToken | back to summary |
|---|---|
| private final String securityToken | |
| sessionKeySupplier | back to summary |
|---|---|
| private final SessionKeySupplier sessionKeySupplier | |
| SecurityTokenAdapter | back to summary |
|---|---|
| public SecurityTokenAdapter(String securityToken, SessionKeySupplier sessionKeySupplier) | |
| getSecurityToken | back to summary |
|---|---|
| public String getSecurityToken() | |
| getStringClaim | back to summary |
|---|---|
| public String getStringClaim(String key) Return a claim from the token | |
| getTokenValidDuration | back to summary |
|---|---|
| public Duration getTokenValidDuration() Get the duration the token is valid, from issue time to expiration time.
| |
| isEqualPublicKey | back to summary |
|---|---|
| private boolean isEqualPublicKey(RSAPublicKey a, RSAPublicKey b) Checks if two public keys are equal
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Checks to see if the current token is still valid
| |
| isValid | back to summary |
|---|---|
| pack-priv boolean isValid(Optional<Duration> time) Checks to see if the current token is still valid after reducing buffer time
| |
| retrievePublicKey | back to summary |
|---|---|
| private static Optional Convert the JWK to JCE
| |