|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.security.PublicSecurityService | +--com.bea.security.CredentialMappingService
The Credential Mapping Service may be used to obtain an appropriate set of credentials that have been administratively configured to be used by the requester when attempting to access a specified resource with a specific action.
The CredentialService returns a number of different credential formats. The specific format returned is dependent upon the type of provider that has been configured for the requested resource and action. Two of the primary credential formats returned by the CredentialService are defined by the Java Connector specification.
javax.resource.spi.security.PasswordCredential
. The population
of the ManagedConnectionFactory is required to be performed by the
caller, if necessary.
javax.resource.spi.security.GenericCredential
interface.
Fields inherited from class com.bea.security.PublicSecurityService |
COMPATIBLE,
COMPATIBLE_DEPRECATED,
COMPATIBLE_UNKNOWN,
NOT_COMPATIBLE |
Method Summary | |
java.lang.Object |
getCredential(AuthenticIdentity byident,
java.lang.String alias,
RuntimeResource resource,
RuntimeAction action,
AppContext ctx,
java.lang.String credtype)
Gets a credential mapped to a specific alias, resource, and action for an AuthenticIdentity . |
java.lang.Object |
getCredential(AuthenticIdentity byident,
java.lang.String alias,
RuntimeResource resource,
RuntimeAction action,
java.lang.String credtype)
Gets a credential mapped to a specific alias, resource, and action for an AuthenticIdentity . |
java.util.Vector |
getCredentials(AuthenticIdentity byident,
AuthenticIdentity forident,
RuntimeResource resource,
RuntimeAction action,
AppContext ctx,
java.lang.String credtype)
Gets a set of credentials relevant to a specific resource and action for an AuthenticIdentity . |
java.util.Vector |
getCredentials(AuthenticIdentity byident,
AuthenticIdentity forident,
RuntimeResource resource,
RuntimeAction action,
java.lang.String[] credtypes)
Gets a set of credentials relevant to a specific resource and action for an AuthenticIdentity . |
ServiceType |
getServiceType()
Returns the version of this service |
ServiceVersion |
getVersion()
Returns the type of this service. |
int |
isCompatible(ServiceVersion version)
Determines if the version of the public service API specified in the Java application is compatible with the current version of the service API in the security runtime instance. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public ServiceType getServiceType()
ServiceVersion
object indicating the version and the patch level of this service.public ServiceVersion getVersion()
ServiceType
object indicating the service type of this service.public int isCompatible(ServiceVersion version)
version
- a ServiceVersion
which is being asked for by the Java application.
The current service, that is, the service in the security runtime instance,
will indiciate if it supports the version specified in the isCompatible()
method.NOT_COMPATIBLE
if the service is not compatible
with the supplied version, COMPATIBLE
if the service is fully compatible,
COMPATIBLE_DEPRECATED
if the service is compatible, but some functions have
been depricated between the versions, or, finally, COMPATIBLE_UNKNOWN
if the version
passed in is newer than the current version, so compatibility is unknown.public java.util.Vector getCredentials(AuthenticIdentity byident, AuthenticIdentity forident, RuntimeResource resource, RuntimeAction action, java.lang.String[] credtypes) throws IdentityNotAuthenticException, ParameterException
AuthenticIdentity
.
byident
- an AuthenticIdentity
of the user requesting this credential set.forident
- an AuthenticIdentity
of the user for whom the credentials are being fetched.resource
- the RuntimeResource
relevant to this credential mapping.action
- the RuntimeAction
relevant to this credential mapping.credtypes
- an array of Strings
containing the credential types being requested.Vector
of credentials relevant for the types requested.
javax.resource.spi.security.PasswordCredential
.
javax.resource.spi.security.GenericCredential
interface.
NOTE: Additional credential formats may also be returned. The caller is responsible for detecting and casting the credential formats to the appropriate Java class.
public java.util.Vector getCredentials(AuthenticIdentity byident, AuthenticIdentity forident, RuntimeResource resource, RuntimeAction action, AppContext ctx, java.lang.String credtype) throws IdentityNotAuthenticException, ParameterException
AuthenticIdentity
.
byident
- an AuthenticIdentity
of the user requesting this credential set.forident
- an AuthenticIdentity
of the user for whom the credentials are being fetched.resource
- the RuntimeResource
relevant to this credential mapping.ctx
- the AppContext
callback object that provides application context
to the provider for use with the credential mappingaction
- the RuntimeAction
relevant to this credential mapping.credtype
- a String
containing the name of the credential type being requested.Vector
of credentials relevant for the types requested.
javax.resource.spi.security.PasswordCredential
.
javax.resource.spi.security.GenericCredential
interface.
NOTE: Additional credential formats may also be returned. The caller is responsible for detecting and casting the credential formats to the appropriate Java class.
public java.lang.Object getCredential(AuthenticIdentity byident, java.lang.String alias, RuntimeResource resource, RuntimeAction action, java.lang.String credtype) throws IdentityNotAuthenticException, ParameterException
AuthenticIdentity
.
byident
- an AuthenticIdentity
of the user requesting this credential.alias
- a String
alias (usually username) this credential is mapped to.resource
- the RuntimeResource
relevant to this credential mapping.action
- the RuntimeAction
relevant to this credential mapping.credtypes
- an array of Strings
containing the credential types being requested.Object
which is a credential for this alias. If more than one credential is mapped for the alias, only one is returned. Which one is returned is not guaranteed.
javax.resource.spi.security.PasswordCredential
.
javax.resource.spi.security.GenericCredential
interface.
NOTE: Additional credential formats may also be returned. The caller is responsible for detecting and casting the credential formats to the appropriate Java class.
public java.lang.Object getCredential(AuthenticIdentity byident, java.lang.String alias, RuntimeResource resource, RuntimeAction action, AppContext ctx, java.lang.String credtype) throws IdentityNotAuthenticException, ParameterException
AuthenticIdentity
.
byident
- an AuthenticIdentity
of the user requesting this credential.alias
- a String
alias (usually username) this credential is mapped to.resource
- the RuntimeResource
relevant to this credential mapping.action
- the RuntimeAction
relevant to this credential mapping.ctx
- the AppContext
callback object that provides application context
to the provider for use with the credential mappingcredtypes
- an array of Strings
containing the credential types being requested.Object
which is a credential for this alias. If more than one credential is mapped for the alias, only one is returned. Which one is returned is not guaranteed.
javax.resource.spi.security.PasswordCredential
.
javax.resource.spi.security.GenericCredential
interface.
NOTE: Additional credential formats may also be returned. The caller is responsible for detecting and casting the credential formats to the appropriate Java class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |