Interface CredentialsFactory
-
- All Implemented Interfaces:
public interface CredentialsFactoryInstantiates Credentials objects of known types.
-
-
Method Summary
-
-
Method Detail
-
create
abstract <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
abstract 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
-
-
-
-