Interface JavaBeanAdapter<T>

Type Parameters:
T - The type of the POJO.
All Superinterfaces:
TokenAdapter<T>

public interface JavaBeanAdapter<T> extends TokenAdapter<T>
A TokenAdapter that can adapt Java bean-compliant POJOs that have been annotated with the annotations in org.forgerock.openam.tokens.
  • Method Details

    • toToken

      Token toToken(T o)
      Specified by:
      toToken in interface TokenAdapter<T>
      Parameters:
      o - Object of type T to convert to a Token.
      Returns:
      A non null Token.
    • fromToken

      T fromToken(Token token)
      Specified by:
      fromToken in interface TokenAdapter<T>
      Parameters:
      token - Token to be converted back to its original type of T.
      Returns:
      Non null object of type T.
    • toTokenQuery

      TokenFilter toTokenQuery(QueryFilter<String> filter)
      Use the bean mappings that have been parsed to turn a query keyed by bean property names into a query keyed by token property names.
      Parameters:
      filter - The query keyed by bean property names.
      Returns:
      The transformed query keyed by token field names.