Class Jwt
- java.lang.Object
-
- org.eclipse.ditto.services.gateway.streaming.Jwt
-
- All Implemented Interfaces:
StreamControlMessage
public final class Jwt extends Object implements StreamControlMessage
Simple event which holds a JWT in string format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetConnectionCorrelationId()Returns the correlation ID of the connection that received the token.inthashCode()static JwtnewInstance(String tokenStringRepresentation, CharSequence connectionCorrelationId)Returns a new instance ofJwt.StringtoString()
-
-
-
Method Detail
-
newInstance
public static Jwt newInstance(String tokenStringRepresentation, CharSequence connectionCorrelationId)
Returns a new instance ofJwt.- Parameters:
tokenStringRepresentation- the string representation of the token.connectionCorrelationId- the correlation ID of the connection that received the token.- Returns:
- the instance.
- Throws:
NullPointerException- if any argument isnull.
-
getConnectionCorrelationId
public String getConnectionCorrelationId()
Returns the correlation ID of the connection that received the token.- Returns:
- the correlation ID.
-
-