org.qi4j.library.shiro.domain.passwords

## Class PasswordRealmMixin

- java.lang.Object
- - org.apache.shiro.realm.CachingRealm
  - - org.apache.shiro.realm.AuthenticatingRealm
    - - org.apache.shiro.realm.AuthorizingRealm
      - - org.qi4j.library.shiro.domain.passwords.PasswordRealmMixin

- All Implemented Interfaces:
    org.apache.shiro.authc.credential.PasswordService, org.apache.shiro.authc.LogoutAware, org.apache.shiro.authz.Authorizer, org.apache.shiro.authz.permission.PermissionResolverAware, org.apache.shiro.authz.permission.RolePermissionResolverAware, org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.realm.Realm, org.apache.shiro.util.Initializable, org.apache.shiro.util.Nameable, ServiceActivation

      public class PasswordRealmMixin
      extends org.apache.shiro.realm.AuthorizingRealm
      implements org.apache.shiro.realm.Realm, org.apache.shiro.authz.Authorizer, org.apache.shiro.authc.credential.PasswordService, ServiceActivation

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.qi4j.api.service.ServiceActivation

      `ServiceActivation.ServiceActivator`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PasswordRealmMixin()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `activateService()` Called after ServiceComposite Activation.
    `protected org.apache.shiro.authc.AuthenticationInfo` | `doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)`
    `protected org.apache.shiro.authz.AuthorizationInfo` | `doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)`
    `String` | `encryptPassword(Object plaintextPassword)`
    `void` | `passivateService()` Called before ServiceComposite Passivation.
    `boolean` | `passwordsMatch(Object submittedPlaintext, String encrypted)`

    - ### Methods inherited from class org.apache.shiro.realm.AuthorizingRealm

      `afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver`

    - ### Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm

      `assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports`

    - ### Methods inherited from class org.apache.shiro.realm.CachingRealm

      `clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.shiro.realm.Realm

      `getAuthenticationInfo, getName, supports`

    - ### Methods inherited from interface org.apache.shiro.authz.Authorizer

      `checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, hasAllRoles, hasRole, hasRoles, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll`

    - ### Methods inherited from interface org.apache.shiro.util.Initializable

      `init`

- - ### Constructor Detail

    - #### PasswordRealmMixin

          public PasswordRealmMixin()

  - ### Method Detail

    - #### activateService

          public void activateService()
                               throws Exception

      Description copied from interface: `ServiceActivation`
      Called after ServiceComposite Activation.
      Specified by:
        `activateService` in interface `ServiceActivation`
      Throws:
        `Exception`

    - #### passivateService

          public void passivateService()
                                throws Exception

      Description copied from interface: `ServiceActivation`
      Called before ServiceComposite Passivation.
      Specified by:
        `passivateService` in interface `ServiceActivation`
      Throws:
        `Exception`

    - #### encryptPassword

          public String encryptPassword(Object plaintextPassword)
                                 throws IllegalArgumentException

      Specified by:
        `encryptPassword` in interface `org.apache.shiro.authc.credential.PasswordService`
      Throws:
        `IllegalArgumentException`

    - #### passwordsMatch

          public boolean passwordsMatch(Object submittedPlaintext,
                               String encrypted)

      Specified by:
        `passwordsMatch` in interface `org.apache.shiro.authc.credential.PasswordService`

    - #### doGetAuthenticationInfo

          protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
                                                                               throws org.apache.shiro.authc.AuthenticationException

      Specified by:
        `doGetAuthenticationInfo` in class `org.apache.shiro.realm.AuthenticatingRealm`
      Throws:
        `org.apache.shiro.authc.AuthenticationException`

    - #### doGetAuthorizationInfo

          protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)

      Specified by:
        `doGetAuthorizationInfo` in class `org.apache.shiro.realm.AuthorizingRealm`