Package org.eclipse.ditto.jwt.model
Class AbstractJsonWebToken
java.lang.Object
org.eclipse.ditto.jwt.model.AbstractJsonWebToken
- All Implemented Interfaces:
JsonWebToken
- Direct Known Subclasses:
ImmutableJsonWebToken
Abstract implementation of
JsonWebToken.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.ditto.jwt.model.JsonWebToken
JsonWebToken.JsonFields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJsonWebToken(String token) protectedAbstractJsonWebToken(JsonWebToken jsonWebToken) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the audience of the token.Returns the authorized party of the token.org.eclipse.ditto.json.JsonObjectgetBody()Returns the body JSON object of the token.Returns the expiration time of the token.org.eclipse.ditto.json.JsonObjectReturns the header JSON object of the token.Returns the issuer of the token.getKeyId()Returns identifier of the key.Returns the scopes of the token.Returns the signature of the token.getToken()Returns the encoded token.inthashCode()booleanReturns true if the token is expired.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ditto.jwt.model.JsonWebToken
getSubjects
-
Constructor Details
-
AbstractJsonWebToken
-
AbstractJsonWebToken
-
-
Method Details
-
getHeader
public org.eclipse.ditto.json.JsonObject getHeader()Description copied from interface:JsonWebTokenReturns the header JSON object of the token.- Specified by:
getHeaderin interfaceJsonWebToken- Returns:
- the header JSON.
-
getBody
public org.eclipse.ditto.json.JsonObject getBody()Description copied from interface:JsonWebTokenReturns the body JSON object of the token.- Specified by:
getBodyin interfaceJsonWebToken- Returns:
- the body JSON.
-
getToken
Description copied from interface:JsonWebTokenReturns the encoded token.- Specified by:
getTokenin interfaceJsonWebToken- Returns:
- the token.
-
getKeyId
Description copied from interface:JsonWebTokenReturns identifier of the key.- Specified by:
getKeyIdin interfaceJsonWebToken- Returns:
- the identifier.
-
getIssuer
Description copied from interface:JsonWebTokenReturns the issuer of the token.- Specified by:
getIssuerin interfaceJsonWebToken- Returns:
- the issuer.
-
getSignature
Description copied from interface:JsonWebTokenReturns the signature of the token.- Specified by:
getSignaturein interfaceJsonWebToken- Returns:
- the signature.
-
getAudience
Description copied from interface:JsonWebTokenReturns the audience of the token.- Specified by:
getAudiencein interfaceJsonWebToken- Returns:
- the audience.
-
getAuthorizedParty
Description copied from interface:JsonWebTokenReturns the authorized party of the token.- Specified by:
getAuthorizedPartyin interfaceJsonWebToken- Returns:
- the authorized party.
-
getScopes
Description copied from interface:JsonWebTokenReturns the scopes of the token.- Specified by:
getScopesin interfaceJsonWebToken- Returns:
- the scopes.
-
getExpirationTime
Description copied from interface:JsonWebTokenReturns the expiration time of the token.- Specified by:
getExpirationTimein interfaceJsonWebToken- Returns:
- the expiration time.
-
isExpired
public boolean isExpired()Description copied from interface:JsonWebTokenReturns true if the token is expired.- Specified by:
isExpiredin interfaceJsonWebToken- Returns:
- true if token is expired otherwise false.
-
equals
-
hashCode
public int hashCode() -
toString
-