| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.ietf.jgss.GSSCredential interface in 
  J2SE Version 1.4, which provides similar functionality.
The interface javax.resource.spi.security.GenericCredential 
  defines a security mechanism independent interface for accessing 
  security credential of a resource principal. 
  
The GenericCredential interface provides a Java 
  wrapper over an underlying mechanism specific representation of
  a security credential. For example, the GenericCredential
  interface can be used to wrap Kerberos credentials.
  
The connector architecture does not define any standard format and requirements for security mechanism specific credentials. For example, a security credential wrapped by a GenericCredential interface can have a native representation specific to an operating system.
The GenericCredential interface enables a resource adapter to extract information about a security credential. The resource adapter can then manage EIS sign-on for a resource principal by either:
Subject, 
Principal| Method Summary | |
|  boolean | equals(java.lang.Object another)Deprecated. Tests if this GenericCredential instance refers to the same entity as the supplied object. | 
|  byte[] | getCredentialData()Deprecated. Gets security data for a specific security mechanism represented by the GenericCredential. | 
|  java.lang.String | getMechType()Deprecated. Returns the mechanism type for the GenericCredential instance. | 
|  java.lang.String | getName()Deprecated. Returns the name of the resource principal associated with a GenericCredential instance. | 
|  int | hashCode()Deprecated. Returns the hash code for this GenericCredential | 
| Method Detail | 
public java.lang.String getName()
public java.lang.String getMechType()
public byte[] getCredentialData()
                         throws SecurityException
The getCredentialData method returns the credential representation as an array of bytes. Note that the connector architecture does not define any standard format for the returned credential data.
SecurityException - Failed operation due to security related
                      error conditionpublic boolean equals(java.lang.Object another)
public int hashCode()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.