|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xebialabs.deployit.security.SecurityTemplate
public class SecurityTemplate
| Constructor Summary | |
|---|---|
SecurityTemplate()
|
|
| Method Summary | ||
|---|---|---|
static
|
executeAs(java.lang.String username,
java.lang.String password,
JcrTemplate jcrTemplate,
JcrCallback<T> callback)
|
|
static
|
executeAs(java.lang.String username,
java.lang.String password,
SecurityCallback<T> callback)
|
|
static
|
executeAs(UsernameAndPasswordCredentials credentials,
SecurityCallback<T> callback)
|
|
static
|
executeAsAdmin(SecurityCallback<T> callback)
|
|
static void |
restoreAuthentication(org.springframework.security.core.Authentication origAuthentication)
|
|
static org.springframework.security.core.Authentication |
setCredentials(java.lang.String username,
java.lang.String password)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityTemplate()
| Method Detail |
|---|
public static <T> T executeAsAdmin(SecurityCallback<T> callback)
public static <T> T executeAs(java.lang.String username,
java.lang.String password,
JcrTemplate jcrTemplate,
JcrCallback<T> callback)
public static <T> T executeAs(UsernameAndPasswordCredentials credentials,
SecurityCallback<T> callback)
public static <T> T executeAs(java.lang.String username,
java.lang.String password,
SecurityCallback<T> callback)
public static org.springframework.security.core.Authentication setCredentials(java.lang.String username,
java.lang.String password)
public static void restoreAuthentication(org.springframework.security.core.Authentication origAuthentication)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||