| Package | Description | 
|---|---|
| org.seedstack.ldap | |
| org.seedstack.seed.security | Provides classes for securing an application. | 
| org.seedstack.seed.security.principals | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | LdapUserContextPrincipalProviderA PrincipalProvider for a LdapUserContext. | 
| Modifier and Type | Method and Description | 
|---|---|
| PrincipalProvider<?> | SecuritySupport. getIdentityPrincipal()Gets the principal provider that holds the user's identity. | 
| PrincipalProvider<?> | AuthenticationInfo. getIdentityPrincipal()Getter identityPrincipal | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<PrincipalProvider<?>> | SecuritySupport. getOtherPrincipals()Retrieves all the PrincipalProviders containing the user's details. | 
| Collection<PrincipalProvider<?>> | AuthenticationInfo. getOtherPrincipals()Getter otherPrincipals | 
| <T extends Serializable> | SecuritySupport. getPrincipalsByType(Class<T> principalClass)Gets all the PrincipalProviders corresponding to a type of PrincipalProvider. For example, you can use this method to get the LDAPUser by calling : getPrincipalsByType(LDAPUser.class).Then on the first element of the collection : LDAPUser user =
 ldapUserPrincipalProvider.getPrincipal(). | 
| Collection<PrincipalProvider<?>> | PrincipalCustomizer. principalsToAdd(PrincipalProvider<?> identity,
               Collection<PrincipalProvider<?>> realmPrincipals)Specifies the principals to add to the ones given by the realm. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<String> | Realm. getRealmRoles(PrincipalProvider<?> identityPrincipal,
             Collection<PrincipalProvider<?>> otherPrincipals)Get the roles | 
| Collection<PrincipalProvider<?>> | PrincipalCustomizer. principalsToAdd(PrincipalProvider<?> identity,
               Collection<PrincipalProvider<?>> realmPrincipals)Specifies the principals to add to the ones given by the realm. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<String> | Realm. getRealmRoles(PrincipalProvider<?> identityPrincipal,
             Collection<PrincipalProvider<?>> otherPrincipals)Get the roles | 
| Collection<PrincipalProvider<?>> | PrincipalCustomizer. principalsToAdd(PrincipalProvider<?> identity,
               Collection<PrincipalProvider<?>> realmPrincipals)Specifies the principals to add to the ones given by the realm. | 
| Collection<Role> | RoleMapping. resolveRoles(Set<String> realmData,
            Collection<PrincipalProvider<?>> principalProviders)Resolve the  Roles from the given data. | 
| Constructor and Description | 
|---|
| AuthenticationInfo(PrincipalProvider<?> identityPrincipal,
                  Object credentials)Constructor using Principal as identity principal. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SimplePrincipalProviderA named principal represented as a string. | 
| class  | X500PrincipalProviderPrincipal provider that stores the subject X500Principal provided during authentication. | 
| class  | X509CertificatePrincipalProviderPrincipal provider that stores the subject X509 certificate chain provided during authentication. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends Serializable> | Principals. getOnePrincipalByType(Collection<PrincipalProvider<?>> principalProviders,
                     Class<T> principalClass)Gets one PrincipalProvider corresponding to a type of PrincipalProvider. For example, you can use this method to get the LDAPUser by calling : getOnePrincipalsByType(principals, LDAPUserPrincipalProvider.class).Then : LDAPUser user =
 ldapUserPrincipalProvider.getPrincipal(). | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends Serializable> | Principals. getPrincipalsByType(Collection<PrincipalProvider<?>> principalProviders,
                   Class<T> principalClass)Gets all the PrincipalProviders corresponding to a type of PrincipalProvider in a collection. For example, you can use this method to get the LDAPUser by calling : getPrincipalsByType(principals, LDAPUserPrincipalProvider.class).Then on the first element of the collection : LDAPUser user =
 ldapUserPrincipalProvider.getPrincipal(). | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T extends Serializable> | Principals. getOnePrincipalByType(Collection<PrincipalProvider<?>> principalProviders,
                     Class<T> principalClass)Gets one PrincipalProvider corresponding to a type of PrincipalProvider. For example, you can use this method to get the LDAPUser by calling : getOnePrincipalsByType(principals, LDAPUserPrincipalProvider.class).Then : LDAPUser user =
 ldapUserPrincipalProvider.getPrincipal(). | 
| static <T extends Serializable> | Principals. getPrincipalsByType(Collection<PrincipalProvider<?>> principalProviders,
                   Class<T> principalClass)Gets all the PrincipalProviders corresponding to a type of PrincipalProvider in a collection. For example, you can use this method to get the LDAPUser by calling : getPrincipalsByType(principals, LDAPUserPrincipalProvider.class).Then on the first element of the collection : LDAPUser user =
 ldapUserPrincipalProvider.getPrincipal(). | 
| static SimplePrincipalProvider | Principals. getSimplePrincipalByName(Collection<PrincipalProvider<?>> principalProviders,
                        String principalName)Gives the simple principal with the given name from the given collection of principals | 
| static Collection<SimplePrincipalProvider> | Principals. getSimplePrincipals(Collection<PrincipalProvider<?>> principalProviders)Extracts the simple principals of the collection of principals | 
Copyright © 2013-2018–2019 SeedStack. All rights reserved.