| java.lang.Object com.sun.portal.cli.cert.JSSUtil
JSSUtil | public class JSSUtil (Code) | | |
Method Summary | |
public static X509Certificate | addCertificate(JSSContext cntx, File certfile, String nick, boolean isCACert) | public static boolean | certExist(JSSContext cntx, String nickname) Checks if the specifed certificate exists in the certificate database. | public static X509Certificate | changeCertificateTrust(X509Certificate cert, String ssl, String email, String objsign) | public static Password | decryptPassword(String password) | public static Password | decryptPassword(SRADecoder passDecoder, String password) | public static String | encryptPassword(String password) | public static String | encryptPassword(SRADecoder passDecoder, String password) | public static X509Certificate | getCertByNickname(JSSContext cntx, String nickname) Retrieve the specifed certificate from the certificate database. | public static String | getCertWithSubject(CryptoToken tok, Name subject) | public static SRADecoder | getDefaultDecoder() | public static Name | getIssuer(String issuerName) Construct the ASN1 obbject Name
Let us say the issuername is "C=IN, CN=Sun-Melody-CA, O=Sun, OU=IPS"
ASN1 object Name is a sequence of the attributes C,CN,O,OU.
JSS requires one to create the Name sequence in the reverse order.
i.e. | public static String[][] | getNameDS(String issuerName) Construct the datastructure to hold the issuername info. | public static String | getTrust(org.mozilla.jss.crypto.X509Certificate cert) Get the Trust String of the specified certificate. | public static int | getTrust(String trusttype) Get the Certificate Trust value based on the Trust type. | public static String | getTrustStr(int trust) Get the Trust String based on the trust value.. | public static String | getTrustStr(int trust, boolean isSSLTrust) Get the Trust String based on the trust value. | public static boolean | isPasswordEncrypted(String password) | public static boolean | isPasswordEncrypted(SRADecoder passDecoder, String password) | public static void | setDefaultDecoder(String certdir) | public static void | verifyCertificate(Certificate cert) Verifies the validity of the certificate. |
certExist | public static boolean certExist(JSSContext cntx, String nickname)(Code) | | Checks if the specifed certificate exists in the certificate database.
|
changeCertificateTrust | public static X509Certificate changeCertificateTrust(X509Certificate cert, String ssl, String email, String objsign) throws Exception(Code) | | Change the Trust attributes of the specified certificate
|
getCertByNickname | public static X509Certificate getCertByNickname(JSSContext cntx, String nickname) throws Exception(Code) | | Retrieve the specifed certificate from the certificate database.
|
getCertWithSubject | public static String getCertWithSubject(CryptoToken tok, Name subject) throws Exception(Code) | | |
getIssuer | public static Name getIssuer(String issuerName) throws Exception(Code) | | Construct the ASN1 obbject Name
Let us say the issuername is "C=IN, CN=Sun-Melody-CA, O=Sun, OU=IPS"
ASN1 object Name is a sequence of the attributes C,CN,O,OU.
JSS requires one to create the Name sequence in the reverse order.
i.e. OU,O,CN,C
|
getNameDS | public static String[][] getNameDS(String issuerName)(Code) | | Construct the datastructure to hold the issuername info.
|
getTrust | public static String getTrust(org.mozilla.jss.crypto.X509Certificate cert)(Code) | | Get the Trust String of the specified certificate.
|
getTrust | public static int getTrust(String trusttype)(Code) | | Get the Certificate Trust value based on the Trust type.
|
getTrustStr | public static String getTrustStr(int trust)(Code) | | Get the Trust String based on the trust value..
|
getTrustStr | public static String getTrustStr(int trust, boolean isSSLTrust)(Code) | | Get the Trust String based on the trust value.
|
isPasswordEncrypted | public static boolean isPasswordEncrypted(String password)(Code) | | |
verifyCertificate | public static void verifyCertificate(Certificate cert)(Code) | | Verifies the validity of the certificate.
|
|
|