Class CallerOnlyCredential

java.lang.Object
javax.security.enterprise.credential.CallerOnlyCredential
All Implemented Interfaces:
Credential

public class CallerOnlyCredential extends Object implements Credential
CallerOnlyCredential represents a credential that only contains a caller name and no secret of any kind.

This kind of credential is for internal usage within an application, e.g. for "run-as" functionality in a context where the caller is already sufficiently trusted.

  • Constructor Details

    • CallerOnlyCredential

      public CallerOnlyCredential(String caller)
      Parameters:
      caller - The caller name
  • Method Details

    • getCaller

      public String getCaller()