java.lang.Object
java.security.Security
- See Also:
- Top Examples, Source Code
public static int addProvider(Provider provider)
- See Also:
SecurityPermission
, removeProvider(java.lang.String)
, getProvider(java.lang.String)
, SecurityManager.checkSecurityAccess(java.lang.String)
, SecurityException, NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1561]Add a new security provider
By Anonymous on 2005/10/07 05:25:33 Rate
//add a new security provider
import org.bouncycastle.jce.provider.BouncyCastleProvider;
java.security.Security.addProvider ( new org.bouncycastle.jce.provider.BouncyCastleProvider ( ) ) ;
Cipher c = Cipher.getInstance ( "RSA/ECB/PKCS1Padding", "BC" ) ;
@Deprecated
public static String getAlgorithmProperty(String algName,
String propName)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Set<String> getAlgorithms(String serviceName)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static String getProperty(String key)
- See Also:
SecurityPermission
, setProperty(java.lang.String, java.lang.String)
, NullPointerException, SecurityManager.checkPermission(java.security.Permission)
, SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Provider getProvider(String name)
- See Also:
addProvider(java.security.Provider)
, removeProvider(java.lang.String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Provider[] getProviders()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Provider[] getProviders(String filter)
- See Also:
getProviders(java.util.Map)
, NullPointerException, InvalidParameterException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Provider[] getProviders(Map<String,String> filter)
- See Also:
getProviders(java.lang.String)
, NullPointerException, InvalidParameterException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int insertProviderAt(Provider provider,
int position)
- See Also:
SecurityPermission
, removeProvider(java.lang.String)
, getProvider(java.lang.String)
, SecurityManager.checkSecurityAccess(java.lang.String)
, SecurityException, NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void removeProvider(String name)
- See Also:
addProvider(java.security.Provider)
, getProvider(java.lang.String)
, SecurityManager.checkSecurityAccess(java.lang.String)
, SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setProperty(String key,
String datum)
- See Also:
SecurityPermission
, getProperty(java.lang.String)
, NullPointerException, SecurityManager.checkPermission(java.security.Permission)
, SecurityException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples