Class TokenRequestSpec

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class TokenRequestSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    TokenRequestSpec contains client provided parameters of a token request.
    • Constructor Detail

      • TokenRequestSpec

        public TokenRequestSpec​(@NonNull
                                @NonNull java.util.List<java.lang.String> audiences,
                                BoundObjectReference boundObjectRef,
                                java.lang.Number expirationSeconds)
      • TokenRequestSpec

        public TokenRequestSpec()
    • Method Detail

      • getAudiences

        @NonNull
        public @NonNull java.util.List<java.lang.String> getAudiences()
        Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
      • getExpirationSeconds

        public java.lang.Number getExpirationSeconds()
        ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.
      • setAudiences

        public void setAudiences​(@NonNull
                                 @NonNull java.util.List<java.lang.String> audiences)
        Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
      • setExpirationSeconds

        public void setExpirationSeconds​(java.lang.Number expirationSeconds)
        ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object