Class DefaultCredentialsFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T extends Credentials> T create(Class<T> type) Instantiates a credentials object given its public type.
      Class<out Credentials> getPublicType(Credentials credentials) Gets the public type for the given credentials instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCredentialsFactory

        DefaultCredentialsFactory(ObjectFactory objectFactory)
    • Method Detail

      • create

         <T extends Credentials> T create(Class<T> type)

        Instantiates a credentials object given its public type.

        Parameters:
        type - the public type of the credentials
        Returns:

        the new credentials object, implementing T

      • getPublicType

         Class<out Credentials> getPublicType(Credentials credentials)

        Gets the public type for the given credentials instance.

        Parameters:
        credentials - a Credentials instance
        Returns:

        the public credentials type