Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

DefaultPolicyParser.PermissionExpander Class Reference

Inherits org::apache::harmony::security::fortress::PolicyUtils::GeneralExpansionHandler.

List of all members.


Detailed Description

Specific handler for expanding self and alias protocols.

Public Member Functions

PermissionExpander configure (DefaultPolicyScanner.GrantEntry ge, KeyStore ks)
 Combined setter of all required fields.
String resolve (String protocol, String data) throws PolicyUtils.ExpansionFailedException
 Resolves the following protocols:.

Private Member Functions

String pc2str (Principal pc)

Private Attributes

KeyStore ks
DefaultPolicyScanner.GrantEntry ge

Member Function Documentation

PermissionExpander configure ( DefaultPolicyScanner.GrantEntry  ge,
KeyStore  ks 
)

Combined setter of all required fields.

String resolve ( String  protocol,
String  data 
) throws PolicyUtils.ExpansionFailedException

Resolves the following protocols:.

self
Denotes substitution to a principal information of the parental GrantEntry. Returns a space-separated list of resolved Principals (including wildcarded), formatting each as class "name". If parental GrantEntry has no Principals, throws ExpansionFailedException.
alias:name
Denotes substitution of a KeyStore alias. Namely, if a KeyStore has an X.509 certificate associated with the specified name, then returns javax.security.auth.x500.X500Principal "DN" string, where DN is a certificate's subject distinguished name.
Exceptions:
ExpansionFailedException - if protocol is other than self or alias, or if data resolution failed

Implements PolicyUtils.GeneralExpansionHandler.

String pc2str ( Principal  pc  )  [private]


Member Data Documentation

KeyStore ks [private]

DefaultPolicyScanner.GrantEntry ge [private]