Package org.duracloud.security.context
Class SecurityContextUtil
- java.lang.Object
-
- org.duracloud.security.context.SecurityContextUtil
-
-
Constructor Summary
Constructors Constructor Description SecurityContextUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialgetCurrentUser()DuracloudUserDetailsgetCurrentUserDetails()StringgetCurrentUsername()
-
-
-
Method Detail
-
getCurrentUsername
public String getCurrentUsername() throws NoUserLoggedInException
- Specified by:
getCurrentUsernamein interfaceUserUtil- Throws:
NoUserLoggedInException
-
getCurrentUser
public Credential getCurrentUser() throws NoUserLoggedInException
- Throws:
NoUserLoggedInException
-
getCurrentUserDetails
public DuracloudUserDetails getCurrentUserDetails() throws NoUserLoggedInException
- Throws:
NoUserLoggedInException
-
-