Package com.appslandia.plum.base
Class UserPrincipalWrapper
- java.lang.Object
-
- javax.security.enterprise.CallerPrincipal
-
- com.appslandia.plum.base.UserPrincipal
-
- com.appslandia.plum.base.UserPrincipalWrapper
-
- All Implemented Interfaces:
Principal
public class UserPrincipalWrapper extends UserPrincipal
- Author:
- Loc Ha
-
-
Constructor Summary
Constructors Constructor Description UserPrincipalWrapper(UserPrincipal principal, AuthCredential credential)UserPrincipalWrapper(UserPrincipal principal, String module, boolean rememberMe, boolean reauthentication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()StringgetModule()StringgetName()UserPrincipalgetPrincipal()longgetReauthAt()intgetUserId()booleanisRememberMe()
-
-
-
Constructor Detail
-
UserPrincipalWrapper
public UserPrincipalWrapper(UserPrincipal principal, AuthCredential credential)
-
UserPrincipalWrapper
public UserPrincipalWrapper(UserPrincipal principal, String module, boolean rememberMe, boolean reauthentication)
-
-
Method Detail
-
getPrincipal
public UserPrincipal getPrincipal()
-
getUserId
public int getUserId()
- Overrides:
getUserIdin classUserPrincipal
-
getModule
public String getModule()
- Overrides:
getModulein classUserPrincipal
-
isRememberMe
public boolean isRememberMe()
- Overrides:
isRememberMein classUserPrincipal
-
getReauthAt
public long getReauthAt()
- Overrides:
getReauthAtin classUserPrincipal
-
getName
public String getName()
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayNamein classUserPrincipal
-
-