public class Principal extends Object implements Principal, Serializable
getUserPrincipal()
.Modifier and Type | Field and Description |
---|---|
static String |
AUTH_METHOD_CERTIFICATE |
static String |
AUTH_METHOD_DIGEST |
static String |
AUTH_METHOD_HEADER_VARIABLE |
static String |
AUTH_METHOD_PASSWORD |
static String |
AUTH_METHOD_SAML_ARTIFACT |
static String |
AUTH_METHOD_SAP_ASSERTION_TICKET |
static String |
AUTH_METHOD_SAP_LOGON_TICKET |
static String |
AUTH_METHOD_UNKNOWN |
static String |
AUTH_METHOD_WSSEC_SAML |
Constructor and Description |
---|
Principal(String name)
This constructs new Principal by given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object alien)
Compares this principal to the specified object.
|
String |
getAuthenticationMethod()
Returns the authentication method that was used to authenticate
this principal.
|
String |
getName()
Returns the name of this principal.
|
int |
hashCode()
Returns a hashcode for this principal.
|
void |
setAuthenticationMethod(String authenticationMethod)
Specifies the authentication method that was used to create this
principal.
|
String |
toString()
Returns a string representation of this principal.
|
public static final String AUTH_METHOD_UNKNOWN
public static final String AUTH_METHOD_PASSWORD
public static final String AUTH_METHOD_DIGEST
public static final String AUTH_METHOD_CERTIFICATE
public static final String AUTH_METHOD_SAP_LOGON_TICKET
public static final String AUTH_METHOD_SAP_ASSERTION_TICKET
public static final String AUTH_METHOD_SAML_ARTIFACT
public static final String AUTH_METHOD_WSSEC_SAML
public static final String AUTH_METHOD_HEADER_VARIABLE
public Principal(String name)
name
- is the authenticated user's username.public boolean equals(Object alien)
public String getName()
public int hashCode()
public String toString()
public void setAuthenticationMethod(String authenticationMethod)
authenticationMethod
- One of the constants AUTH_METHOD_... of this class. The parameter
is of type String to allow setting custom type authentication
methods, although the SAP code might recognize only the constant
values.public String getAuthenticationMethod()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] CORE-TOOLS
|
[sap.com]
|
-
|
BC-JAS
|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/security/api
|
api
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-ESI-WS-JAV-RT
|
[sap.com] SAP_BUILDT
|
[sap.com] tc/bi/wstech
|
def
|
BC-CTS-CBS-PLG
|
Copyright 2018 SAP AG Complete Copyright Notice