org.keycloak.broker.oidc.mappers

## Class AbstractClaimMapper

- java.lang.Object
- - org.keycloak.broker.provider.AbstractIdentityProviderMapper
  - - org.keycloak.broker.oidc.mappers.AbstractClaimMapper

- All Implemented Interfaces:
    IdentityProviderMapper, ConfiguredProvider, Provider, ProviderFactory<IdentityProviderMapper>
  Direct Known Subclasses:
    ClaimToRoleMapper, ExternalKeycloakRoleToRoleMapper, UserAttributeMapper, UsernameTemplateMapper

      public abstract class AbstractClaimMapper
      extends AbstractIdentityProviderMapper

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `CLAIM`
    `static String` | `CLAIM_VALUE`

    - ### Fields inherited from interface org.keycloak.broker.provider.IdentityProviderMapper

      `ANY_PROVIDER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractClaimMapper()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Object` | `getClaimValue(BrokeredIdentityContext context, String claim)`
    `static Object` | `getClaimValue(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)`
    `static Object` | `getClaimValue(JsonWebToken token, String claim)`
    `protected boolean` | `hasClaimValue(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)`
    `boolean` | `valueEquals(String desiredValue, Object value)`

    - ### Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderMapper

      `close, create, importNewUser, init, postInit, preprocessFederatedIdentity`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.keycloak.broker.provider.IdentityProviderMapper

      `getCompatibleProviders, getDisplayCategory, getDisplayType, updateBrokeredUser`

    - ### Methods inherited from interface org.keycloak.provider.ProviderFactory

      `getId`

    - ### Methods inherited from interface org.keycloak.provider.ConfiguredProvider

      `getConfigProperties, getHelpText`

- - ### Field Detail

    - #### CLAIM

          public static final String CLAIM

      See Also:
        Constant Field Values

    - #### CLAIM_VALUE

          public static final String CLAIM_VALUE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### AbstractClaimMapper

          public AbstractClaimMapper()

  - ### Method Detail

    - #### getClaimValue

          public static Object getClaimValue(JsonWebToken token,
                                             String claim)

    - #### getClaimValue

          public static Object getClaimValue(IdentityProviderMapperModel mapperModel,
                                             BrokeredIdentityContext context)

    - #### getClaimValue

          public static Object getClaimValue(BrokeredIdentityContext context,
                                             String claim)

    - #### hasClaimValue

          protected boolean hasClaimValue(IdentityProviderMapperModel mapperModel,
                                          BrokeredIdentityContext context)

    - #### valueEquals

          public boolean valueEquals(String desiredValue,
                                     Object value)

Copyright © 2016 JBoss by Red Hat. All rights reserved.