***  This API provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.security.login
Class OMIServerPrincipal

java.lang.Object
  |
  +--com.sas.services.security.login.PFSPrincipal
        |
        +--com.sas.services.security.login.ServerPrincipal
              |
              +--com.sas.services.security.login.OMIServerPrincipal
All Implemented Interfaces:
PFSPrincipalInterface, ServerPrincipalInterface

public class OMIServerPrincipal
extends ServerPrincipal

OMIServerPrincipal represents a pricipal identity that was authenticated against an OMI server. The principal for OMI is different because the SAS authorization classes use this class to get a handle to the IOMI and ISecurity interfaces to get authorization information.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
OMIServerPrincipal(String name)
          Construct a new OMIServerPrincipal with the given name.
 
Method Summary
 com.sas.meta.SASOMI.IOMI getIOMI()
          Return the IOMI interface that the identity was authenticated against.
 com.sas.meta.SASOMI.ISecurity getISecurity()
          Return the ISecurity interface.
 String getPassword()
          Get the password
 void setPassword(String password)
          Set the password that was used to authenticate this principal.
 
Methods inherited from class com.sas.services.security.login.ServerPrincipal
equals, getBase, getDescription, getDomain, getHost, getPort, getProtocol, getUserId, setBase, setDescription, setDomain, setHost, setPort, setProtocol, setUserId
 
Methods inherited from class com.sas.services.security.login.PFSPrincipal
getName, hashCode, implies, isProcessed, setProcessed, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sas.services.security.login.PFSPrincipalInterface
isProcessed, setProcessed
 
Methods inherited from interface java.security.Principal
getName, hashCode, toString
 

Constructor Detail

OMIServerPrincipal

public OMIServerPrincipal(String name)
Construct a new OMIServerPrincipal with the given name.

Parameters:
name - The principal name for this new identity.
Method Detail

setPassword

public void setPassword(String password)
Set the password that was used to authenticate this principal. I need this later if the IOMI or ISecurity interface is requested.

Parameters:
password - The password that authenticated this user.

getPassword

public String getPassword()
Get the password
Returns:
The password that was used to authenticate with the server.

getIOMI

public com.sas.meta.SASOMI.IOMI getIOMI()
Return the IOMI interface that the identity was authenticated against. The authorization system uses this to retrieve information from the server.

Returns:
the IOMI interface, or null if it could not be returned.

getISecurity

public com.sas.meta.SASOMI.ISecurity getISecurity()
Return the ISecurity interface. The ISecurity interface can get the identity or credentials for the bound user.

Returns:
The ISecurity interface for the server connection, or null if it could not be established.

***  This API provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:02