com.ibm.as400.security.auth
Interface ProfileTokenProvider
- All Known Implementing Classes:
- DefaultProfileTokenProvider
public interface ProfileTokenProvider
Defines an interface for providing a ProfileTokenCredential
to an AS400
object.
This interface is used when an AS400 object is given the responsibility of managing the life cycle of
a user's profile token credential. Management of this credential by the AS400 object may require a new
profile token to be created; this is accomplished via a class that implements this interface.
- See Also:
AS400.AS400(String, ProfileTokenProvider)
,
AS400.AS400(String, ProfileTokenProvider, int)
create
ProfileTokenCredential create()
throws AS400SecurityException
- Creates and returns a new profile token credential. The attributes
of the profile token, such as timeout interval, user, etc are
determined by the class that implements this interface.
- Returns:
- A newly created profile token credential.
- Throws:
AS400SecurityException
- If an IBM i system security or authentication error occurs