Package org.eclipse.ditto.jwt.model
Class Audience
java.lang.Object
org.eclipse.ditto.jwt.model.Audience
Java representation of the audience field specified by:
rfc7519.
-
Method Details
-
empty
builds and Audience without any principles.- Returns:
- the empty audience.
-
getSinglePrinciple
Returns the single principle if this audience does contain only a single principle.- Returns:
- Optional of a principle. Optional is empty if either the principles are empty or the principles contain more than one principle.
-
getPrinciples
Returns the principles of this audience.- Returns:
- the principles of this audience.
-
equals
-
hashCode
public int hashCode() -
toString
-