javax.crypto
Class GetImplPrivilegedAction

java.lang.Object
  extended by javax.crypto.GetImplPrivilegedAction
All Implemented Interfaces:
PrivilegedAction

public class GetImplPrivilegedAction
extends Object
implements PrivilegedAction

This class resolves the implemenation of an algorithm as privileged action using the helper class Util.

Version:
$Id: GetImplPrivilegedAction.java 1913 2007-08-08 02:41:53Z jpeters $
Author:
Patric Kabus, Jan Peters

Field Summary
private  String algorithm_
          The algorithm.
private  Provider provider_
          The provider.
private  String type_
          The type.
 
Constructor Summary
GetImplPrivilegedAction(String algorithm, String type, Provider provider)
          Creates a new GetImplPrivilegedAction object.
 
Method Summary
 Object run()
          Implementation of the privileged action to get the algorithm implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

provider_

private Provider provider_
The provider.


algorithm_

private String algorithm_
The algorithm.


type_

private String type_
The type.

Constructor Detail

GetImplPrivilegedAction

public GetImplPrivilegedAction(String algorithm,
                               String type,
                               Provider provider)
Creates a new GetImplPrivilegedAction object.

Parameters:
algorithm - the algorithm.
type - the type.
provider - the provider.
Method Detail

run

public Object run()
Implementation of the privileged action to get the algorithm implementation

Specified by:
run in interface PrivilegedAction
Returns:
the algorithm class or null if not found.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.