Top Inners Fields Constructors Methods
org.hibernate.secure.internal

public Class StandardJaccServiceImpl

extends Object
implements JaccService, Configurable
Class Inheritance
All Implemented Interfaces
org.hibernate.service.spi.Configurable, org.hibernate.secure.spi.JaccService, org.hibernate.service.Service, java.io.Serializable
Annotations
@Deprecated
Imports
java.security.AccessController, .CodeSource, .Policy, .Principal, .PrivilegedAction, .ProtectionDomain, java.util.Map, .Set, javax.security.auth.Subject, javax.security.jacc.EJBMethodPermission, .PolicyConfiguration, .PolicyConfigurationFactory, .PolicyContext, .PolicyContextException, org.hibernate.HibernateException, org.hibernate.cfg.AvailableSettings, org.hibernate.secure.spi.GrantedPermission, .IntegrationException, .JaccService, .PermissibleAction, .PermissionCheckEntityInformation, org.hibernate.service.spi.Configurable, org.jboss.logging.Logger

Deprecated

Support for JACC will be removed in 6.0

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
protected static interface
protected static class
protected static class

Field Summary

Modifier and TypeField and Description
private String
private static final Logger
private PolicyConfiguration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addPermission(GrantedPermission permissionDeclaration)

Implements org.hibernate.secure.spi.JaccService.addPermission.

Deprecated as a consequence of GrantedPermission being deprecated.
public void
public void
configure(Map<K, V>
The configuration properties.
configurationValues
)

Implements org.hibernate.service.spi.Configurable.configure.

Configure the service.
private void
doPermissionCheckInContext(PermissionCheckEntityInformation entityInformation, PermissibleAction action)

Deprecated as a consequence of PermissionCheckEntityInformation and PermissibleAction being deprecated.
protected Principal[]
public String
getContextId()

Implements org.hibernate.secure.spi.JaccService.getContextId.

Obtain the JACC context-id in effect for this service.
private StandardJaccServiceImpl.ContextSubjectAccess
private String
join(Principal[] principals)

private PolicyConfiguration
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextIdback to summary
private String contextId
logback to summary
private static final Logger log
policyConfigurationback to summary
private PolicyConfiguration policyConfiguration

Constructor Detail

StandardJaccServiceImplback to summary
public StandardJaccServiceImpl()

Method Detail

addPermissionback to summary
public void addPermission(GrantedPermission permissionDeclaration)

Implements org.hibernate.secure.spi.JaccService.addPermission.

Deprecated

as a consequence of GrantedPermission being deprecated. See corresponding docs for further information.

Annotations
@Override
checkPermissionback to summary
public void checkPermission(PermissionCheckEntityInformation entityInformation, PermissibleAction action)

Implements org.hibernate.secure.spi.JaccService.checkPermission.

Deprecated

as a consequence of PermissionCheckEntityInformation and PermissibleAction being deprecated. See corresponding docs for further information.

Annotations
@Override
configureback to summary
public void configure(Map<K, V> configurationValues)

Implements org.hibernate.service.spi.Configurable.configure.

Doc from org.hibernate.service.spi.Configurable.configure.

Configure the service.

Parameters
configurationValues:Map<K, V>

The configuration properties.

Annotations
@Override
doPermissionCheckInContextback to summary
private void doPermissionCheckInContext(PermissionCheckEntityInformation entityInformation, PermissibleAction action)

Deprecated

as a consequence of PermissionCheckEntityInformation and PermissibleAction being deprecated. See corresponding docs for further information.

getCallerPrincipalsback to summary
protected Principal[] getCallerPrincipals()
getContextIdback to summary
public String getContextId()

Implements org.hibernate.secure.spi.JaccService.getContextId.

Doc from org.hibernate.secure.spi.JaccService.getContextId.

Obtain the JACC context-id in effect for this service. null indicates no context is in effect (service is disabled).

Returns:String

The effective JACC context-id

Annotations
@Override
getContextSubjectAccessback to summary
private StandardJaccServiceImpl.ContextSubjectAccess getContextSubjectAccess()
joinback to summary
private String join(Principal[] principals)
locatePolicyConfigurationback to summary
private PolicyConfiguration locatePolicyConfiguration(String contextId)
org.hibernate.secure.internal back to summary

private Class StandardJaccServiceImpl.ContextIdSetAction

extends Object
implements PrivilegedAction<String>
Class Inheritance
  • java.lang.Object
  • org.hibernate.secure.internal.StandardJaccServiceImpl.ContextIdSetAction
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextIdback to summary
private final String contextId

Constructor Detail

ContextIdSetActionback to summary
private ContextIdSetAction(String contextId)

Method Detail

runback to summary
public String run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:String

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override
org.hibernate.secure.internal back to summary

protected Interface StandardJaccServiceImpl.ContextSubjectAccess

Known Direct Implementers
org.hibernate.secure.internal.StandardJaccServiceImpl.PrivilegedContextSubjectAccess, org.hibernate.secure.internal.StandardJaccServiceImpl.NonPrivilegedContextSubjectAccess

Field Summary

Modifier and TypeField and Description
public static final String

Method Summary

Modifier and TypeMethod and Description
public Subject

Field Detail

SUBJECT_CONTEXT_KEYback to summary
public static final String SUBJECT_CONTEXT_KEY

Method Detail

getContextSubjectback to summary
public Subject getContextSubject()
org.hibernate.secure.internal back to summary

protected Class StandardJaccServiceImpl.NonPrivilegedContextSubjectAccess

extends Object
implements ContextSubjectAccess
Class Inheritance
  • java.lang.Object
  • org.hibernate.secure.internal.StandardJaccServiceImpl.NonPrivilegedContextSubjectAccess
All Implemented Interfaces
org.hibernate.secure.internal.StandardJaccServiceImpl.ContextSubjectAccess

Field Summary

Modifier and TypeField and Description
public static final StandardJaccServiceImpl.NonPrivilegedContextSubjectAccess

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Subject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final StandardJaccServiceImpl.NonPrivilegedContextSubjectAccess INSTANCE

Constructor Detail

NonPrivilegedContextSubjectAccessback to summary
protected NonPrivilegedContextSubjectAccess()

Method Detail

getContextSubjectback to summary
public Subject getContextSubject()

Implements org.hibernate.secure.internal.StandardJaccServiceImpl.ContextSubjectAccess.getContextSubject.

Annotations
@Override
org.hibernate.secure.internal back to summary

protected Class StandardJaccServiceImpl.PrivilegedContextSubjectAccess

extends Object
implements ContextSubjectAccess
Class Inheritance
  • java.lang.Object
  • org.hibernate.secure.internal.StandardJaccServiceImpl.PrivilegedContextSubjectAccess
All Implemented Interfaces
org.hibernate.secure.internal.StandardJaccServiceImpl.ContextSubjectAccess

Field Summary

Modifier and TypeField and Description
public static final StandardJaccServiceImpl.PrivilegedContextSubjectAccess
private final PrivilegedAction<Subject>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Subject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final StandardJaccServiceImpl.PrivilegedContextSubjectAccess INSTANCE
privilegedActionback to summary
private final PrivilegedAction<Subject> privilegedAction

Constructor Detail

PrivilegedContextSubjectAccessback to summary
protected PrivilegedContextSubjectAccess()

Method Detail

getContextSubjectback to summary
public Subject getContextSubject()

Implements org.hibernate.secure.internal.StandardJaccServiceImpl.ContextSubjectAccess.getContextSubject.

Annotations
@Override