class DefaultPolicyParser.PermissionExpander extends Object implements PolicyUtils.GeneralExpansionHandler
Modifier and Type | Field and Description |
---|---|
private DefaultPolicyScanner.GrantEntry |
ge |
private KeyStore |
ks |
Constructor and Description |
---|
PermissionExpander(DefaultPolicyScanner.GrantEntry ge,
KeyStore ks)
Combined setter of all required fields.
|
Modifier and Type | Method and Description |
---|---|
private String |
pc2str(Principal pc) |
String |
resolve(String protocol,
String data)
Resolves the following protocols:
self
Denotes substitution to a principal information of the parental
GrantEntry.
|
private final KeyStore ks
private final DefaultPolicyScanner.GrantEntry ge
PermissionExpander(DefaultPolicyScanner.GrantEntry ge, KeyStore ks)
public String resolve(String protocol, String data) throws PolicyUtils.ExpansionFailedException
resolve
in interface PolicyUtils.GeneralExpansionHandler
protocol
- denotes type of resolutiondata
- data to be resolved, optional (may be null)PolicyUtils.ExpansionFailedException
- - if protocol is other than
self or alias, or if data resolution failedCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.