repository.grepcode.com$java$root@jdk$openjdk@6-b14
repository.grepcode.com$java$root@jdk$openjdk@6-b14@java$security$NoSuchAlgorithmException.java
file
oh
o
[]
I am having problems taking in a string (a persons name), and getting back a unique integer, it keeps going through the catch function, and I dont know why, other than the way I wrote SecureRandom is not working, but it is very confusing. I am very new to programming so please be kind!
public static int uinqueID(String name){
try{
SecureRandom srA = SecureRandom.getInstance(name);...
This exception is thrown when a particular cryptographic algorithm is
requested but is not available in the environment.
- Author(s):
- Benjamin Renaud
Constructs a NoSuchAlgorithmException with no detail
message. A detail message is a String that describes this
particular exception.
Constructs a NoSuchAlgorithmException with the specified
detail message. A detail message is a String that describes
this particular exception, which may, for example, specify which
algorithm is not available.
- Parameters:
msg the detail message.
Creates a
NoSuchAlgorithmException with the specified
detail message and cause.
- Parameters:
message the detail message (which is saved for later retrieval
by the java.lang.Throwable.getMessage() method).cause the cause (which is saved for later retrieval by the
java.lang.Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)- Since:
- 1.5
Creates a
NoSuchAlgorithmException with the specified cause
and a detail message of
(cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
- Parameters:
cause the cause (which is saved for later retrieval by the
java.lang.Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)- Since:
- 1.5