aerogear-security 1.3.1

org.jboss.aerogear.security.authz
Interface IdentityManagement.GrantMethods<T>

Enclosing interface:
IdentityManagement<T>

public static interface IdentityManagement.GrantMethods<T>

GrantMethods is a builder to apply roles to User


Method Summary
 IdentityManagement.GrantMethods<T> revoke(String[] roles)
          This method allows to revoke which roles must be revoked to User
 IdentityManagement.GrantMethods<T> roles(String[] roles)
          This method specifies which roles will be applied to User
 void to(String username)
          This method applies roles specified on IdentityManagement.grant(String...)
 void to(T user)
          This method revokes roles specified on IdentityManagement.revoke(String...)
 

Method Detail

to

void to(String username)
This method applies roles specified on IdentityManagement.grant(String...)

Parameters:
username - represents a simple user's implementation to hold credentials.

to

void to(T user)
This method revokes roles specified on IdentityManagement.revoke(String...)

Parameters:
user - represents a simple user's implementation to hold credentials.

roles

IdentityManagement.GrantMethods<T> roles(String[] roles)
This method specifies which roles will be applied to User

Parameters:
roles - Array of roles
Returns:
builder implementation

revoke

IdentityManagement.GrantMethods<T> revoke(String[] roles)
This method allows to revoke which roles must be revoked to User

Parameters:
roles - List of roles to be revoked

aerogear-security 1.3.1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.