站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 j2ee API Documentation 英文版文档

GenericCredential (JBoss J2EE API) - JBoss 3.2.7 j2ee API Documentation 英文版文档


javax.resource.spi.security
Interface GenericCredential


public interface GenericCredential

The interface GenericCredential defines a method of representing a security credential for a resource which is independent of the security mechanism. It can be used to wrap any type of underlying credentials, for example it could be used to wrap Kerberos credentials. This allows the resource adapter to utilize the credentials for sign-on to the EIS.


Method Summary
 boolean equals(Object other)
          Tests object for equality
 byte[] getCredentialData()
          Gets security data from the credential.
 String getMechType()
          Returns the mechanism type for the credential
 String getName()
          Returns the name of the principal associated with the credential
 int hashCode()
          Generates a hashCode for this object
 

Method Detail

getCredentialData

public byte[] getCredentialData()
                         throws SecurityException
Gets security data from the credential.

Returns:
Credential data
Throws:
SecurityException

getMechType

public String getMechType()
Returns the mechanism type for the credential

Returns:
Mechanism Type

getName

public String getName()
Returns the name of the principal associated with the credential

Returns:
Principal name

equals

public boolean equals(Object other)
Tests object for equality


hashCode

public int hashCode()
Generates a hashCode for this object



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.