Class OpenIdConnectToken

  • All Implemented Interfaces:
    Cloneable, Iterable<org.forgerock.json.JsonValue>, Token

    public class OpenIdConnectToken
    extends org.forgerock.json.JsonValue
    implements Token
    Models an OpenId Connect Token.
    Since:
    12.0.0
    • Constructor Detail

      • OpenIdConnectToken

        public OpenIdConnectToken​(String signingKeyId,
                                  String encryptionKeyId,
                                  byte[] clientSecret,
                                  KeyPair signingKeyPair,
                                  Key encryptionKey,
                                  String signingAlgorithm,
                                  String encryptionAlgorithm,
                                  String encryptionMethod,
                                  boolean isIDTokenEncryptionEnabled,
                                  String iss,
                                  String sub,
                                  String aud,
                                  String azp,
                                  long exp,
                                  long iat,
                                  long authTime,
                                  String nonce,
                                  String ops,
                                  String atHash,
                                  String cHash,
                                  String acr,
                                  List<String> amr,
                                  String auditTrackingId,
                                  String realm)
        Constructs a new OpenIdConnectToken.
        Parameters:
        signingKeyId - The signing key id.
        encryptionKeyId - The encryption key id.
        clientSecret - The client's secret.
        signingKeyPair - The token's signing key pair.
        encryptionKey - The token's encryption key.
        signingAlgorithm - The signing algorithm.
        encryptionAlgorithm - The encryption algorithm.
        encryptionMethod - The encryption method.
        isIDTokenEncryptionEnabled - true If ID token encryption is enabled.
        iss - The issuer.
        sub - The subject.
        aud - The audience.
        azp - The authorized party.
        exp - The expiry time.
        iat - The issued at time.
        authTime - The authenticated time.
        nonce - The nonce.
        ops - The ops.
        atHash - The at_hash.
        cHash - The c_hash.
        acr - The acr.
        amr - The amr.
        auditTrackingId - The audit tracking ID.
        realm - The realm.
      • OpenIdConnectToken

        public OpenIdConnectToken​(org.forgerock.json.jose.jwt.JwtClaimsSet claims)
    • Method Detail

      • setClaims

        protected void setClaims​(org.forgerock.json.jose.jwt.JwtClaimsSet claims,
                                 String... keys)
      • getTokenName

        public String getTokenName()
        Gets the token's name.
        Specified by:
        getTokenName in interface Token
        Returns:
        The token's name.
      • getTokenInfo

        public Map<String,​Object> getTokenInfo()
        Gets the token's information.
        Specified by:
        getTokenInfo in interface Token
        Returns:
        A Map of the token's information.
      • toJsonValue

        public org.forgerock.json.JsonValue toJsonValue()
        Gets the JsonValue representation of the token.
        Specified by:
        toJsonValue in interface Token
        Returns:
        The JsonValue representation of the token.
      • getAuditTrackingId

        public String getAuditTrackingId()
        Description copied from interface: Token
        Get the audit tracking ID for this token.
        Specified by:
        getAuditTrackingId in interface Token
        Returns:
        The tracking ID.