public class PicketBoxProcessor extends Object
Process the security annotations on a POJO.
Additionally, there are various useful methods such as #getCallerPrincipal()
to
get the authenticated principal, #getCallerSubject()
to get the authenticated
subject and #getCallerRoles()
to get the roles for the authenticated subject.
Constructor and Description |
---|
PicketBoxProcessor() |
Modifier and Type | Method and Description |
---|---|
Principal |
getCallerPrincipal()
Get the authenticated principal
|
RoleGroup |
getCallerRoles()
Get the caller roles
|
Subject |
getCallerSubject()
Get the caller subject
|
void |
process(Object pojo)
Process the POJO for security annotations
|
void |
setSecurityInfo(String userName,
Object credential)
Set the user name/ Credential
|
public void setSecurityInfo(String userName, Object credential)
Set the user name/ Credential
In the case of X509 certificates, they can be passed as the Credential into this method.
userName
- credential
- public Principal getCallerPrincipal() throws PicketBoxProcessingException
PicketBoxProcessingException
public RoleGroup getCallerRoles() throws PicketBoxProcessingException
PicketBoxProcessingException
public Subject getCallerSubject() throws PicketBoxProcessingException
PicketBoxProcessingException
public void process(Object pojo) throws LoginException, PicketBoxProcessingException
pojo
- PicketBoxProcessingException
LoginException
Copyright © 2019 JBoss by Red Hat. All rights reserved.