- java.lang.Object
-
- com.tenduke.client.openid.IdTokenParser
-
public class IdTokenParser extends Object
Parses Id-token.
-
-
Constructor Summary
Constructors Constructor Description IdTokenParser(JwtParser parser)Constructs new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdTokenfrom(String idTokenString)Parses Id-token.protected List<String>parseListOfStrings(Object value)Helper for extracting list-of-string claim.protected StringstringClaim(Object claim)Helper for extracting string-claim.InstanttoInstant(Long epochSecond)Converts "epoch-second" to anInstant.InstanttoInstant(Object object)Converts an object to anInstant.
-
-
-
Constructor Detail
-
IdTokenParser
public IdTokenParser(JwtParser parser)
Constructs new instance.- Parameters:
parser- -
-
-
Method Detail
-
from
public IdToken from(String idTokenString) throws IdTokenException
Parses Id-token.- Parameters:
idTokenString- -- Returns:
- -
- Throws:
IdTokenException- -
-
stringClaim
@Nullable protected String stringClaim(@Nullable Object claim)
Helper for extracting string-claim.- Parameters:
claim- -- Returns:
- -
-
parseListOfStrings
protected List<String> parseListOfStrings(@Nullable Object value)
Helper for extracting list-of-string claim.- Parameters:
value- -- Returns:
- -
-
toInstant
@Nullable public Instant toInstant(@Nullable Long epochSecond)
Converts "epoch-second" to anInstant.- Parameters:
epochSecond- -- Returns:
- -
-
-