Package com.xebialabs.deployit.security
Class SecurityTemplate
- java.lang.Object
-
- com.xebialabs.deployit.security.SecurityTemplate
-
public class SecurityTemplate extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SecurityTemplate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidrestoreAuthentication(org.springframework.security.core.Authentication origAuthentication)static org.springframework.security.core.AuthenticationsetAuthentication(org.springframework.security.core.Authentication authentication)static org.springframework.security.core.AuthenticationsetCredentials(java.lang.String username, java.lang.String password)
-
-
-
Method Detail
-
setCredentials
public static org.springframework.security.core.Authentication setCredentials(java.lang.String username, java.lang.String password)
-
setAuthentication
public static org.springframework.security.core.Authentication setAuthentication(org.springframework.security.core.Authentication authentication)
-
restoreAuthentication
public static void restoreAuthentication(org.springframework.security.core.Authentication origAuthentication)
-
-