SAP NetWeaver 7.1 Composition Environment

com.sap.engine.lib.security
Class Principal

java.lang.Object
  extended by com.sap.engine.lib.security.Principal
All Implemented Interfaces:
Serializable, Principal

public class Principal
extends Object
implements Principal, Serializable

See Also:
Serialized Form

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)
           
 
Method Summary
 boolean equals(Object alien)
           
 String getAuthenticationMethod()
          Returns the authentication method that was used to authenticate this principal.
 String getName()
           
 int hashCode()
           
 void setAuthenticationMethod(String authenticationMethod)
          Specifies the authentication method that was used to create this principal.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTH_METHOD_UNKNOWN

public static final String AUTH_METHOD_UNKNOWN
See Also:
Constant Field Values

AUTH_METHOD_PASSWORD

public static final String AUTH_METHOD_PASSWORD
See Also:
Constant Field Values

AUTH_METHOD_DIGEST

public static final String AUTH_METHOD_DIGEST
See Also:
Constant Field Values

AUTH_METHOD_CERTIFICATE

public static final String AUTH_METHOD_CERTIFICATE
See Also:
Constant Field Values

AUTH_METHOD_SAP_LOGON_TICKET

public static final String AUTH_METHOD_SAP_LOGON_TICKET
See Also:
Constant Field Values

AUTH_METHOD_SAP_ASSERTION_TICKET

public static final String AUTH_METHOD_SAP_ASSERTION_TICKET
See Also:
Constant Field Values

AUTH_METHOD_SAML_ARTIFACT

public static final String AUTH_METHOD_SAML_ARTIFACT
See Also:
Constant Field Values

AUTH_METHOD_WSSEC_SAML

public static final String AUTH_METHOD_WSSEC_SAML
See Also:
Constant Field Values

AUTH_METHOD_HEADER_VARIABLE

public static final String AUTH_METHOD_HEADER_VARIABLE
See Also:
Constant Field Values
Constructor Detail

Principal

public Principal(String name)
Method Detail

equals

public boolean equals(Object alien)
Specified by:
equals in interface Principal
Overrides:
equals in class Object

getName

public String getName()
Specified by:
getName in interface Principal

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object

setAuthenticationMethod

public void setAuthenticationMethod(String authenticationMethod)
Specifies the authentication method that was used to create this principal. Using this method is useful only for principals that are the result of an authentication.

Parameters:
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.

getAuthenticationMethod

public String getAuthenticationMethod()
Returns the authentication method that was used to authenticate this principal.

Returns:
A String with the authentication method as set by the login module that added this principal. For the common methods, constants AUTH_METHOD_... are provided in this class. Comparing the result of this method with one of the constants must be done using the equals() method, not by ==.

SAP NetWeaver 7.1 Composition Environment

Copyright © 2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.