Class OidcUserInfo

java.lang.Object
com.revetsec.oidc.OidcUserInfo

@Immutable public final class OidcUserInfo extends Object
UserInfo whose subject exactly matches a verified authentication. JSON responses rely on the provider's TLS endpoint; signed responses additionally pass JOSE issuer, audience, signature and profile checks. Claims can contain personal data. The exact issuer/subject pair is the account key; email is a mutable attribute. No public constructor or parse-only factory exists.
Since:
1.0.0
Author:
Mark Allen
  • Method Details

    • getIssuer

      Returns the exact provider issuer to which this result is bound.
      Returns:
      issuer
      Since:
      1.0.0
    • getSubject

      Returns the subject already matched against the validated ID token.
      Returns:
      subject
      Since:
      1.0.0
    • getClaims

      Explicitly returns the checked claims. JSON serialization deliberately emits personal data; do not log it. Aggregated/distributed claim references remain data and are never followed by Revetsec.
      Returns:
      immutable claims object
      Since:
      1.0.0
    • isSigned

      Returns whether the response was authenticated with the configured signing algorithm.
      Returns:
      whether signed
      Since:
      1.0.0
    • toString

      Redacts claims and identity.
      Overrides:
      toString in class Object
      Returns:
      redacted description
      Since:
      1.0.0