|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.engine.lib.security.Principal
public class Principal
This class identifies the authenticated user in all containers.
For example, it can be obtained from Web Container, by calling
HttpServletRequest's method getUserPrincipal().
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Principal(String name)
This constructs new Principal by given name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Principal(String name)
name - is the authenticated user's username.| Method Detail |
|---|
public boolean equals(Object alien)
equals in interface Principalequals in class Objectanother - principal to compare with.
public String getName()
getName in interface Principalpublic int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String toString()
toString in interface PrincipaltoString in class Objectpublic 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 |
|---|---|
[sap.com] SAP_BUILDT
|
[sap.com] tc/bi/wstech
|
[sap.com] ENGINEAPI
|
[sap.com] webservices_lib
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/security/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||