Package java.security
Package java.security.cert
Package java.security.interfaces
Package java.security.spec
Package javax.crypto
Package javax.crypto.interfaces
Package javax.crypto.spec
Miscellaneous Packages
This appendix contains a quick-reference guide to the classes that we have discussed in this book. The primary focus is on classes that are in the java.security package and its sub-packages, as well as the javax.crypto extension package. Accordingly, the classes listed in this appendix are organized by their primary package. Of course, there are a number of security-related classes--such as the various permission classes--that do not belong to one of these packages; these are listed in Section D.8, "Miscellaneous Packages" at the end of this appendix. Information in this appendix is based only on Java 1.2.[1]
[1]1.2 is now Java 2.
Class java.security.AccessControlContext | ||
|
||
public final class java.security.AccessControlContext extends java.lang.Object { // Constructors public AccessControlContext(ProtectionDomain[]); // Instance Methods public void checkPermission(Permission); public boolean equals(Object); public int hashCode(); }
See also: AccessController
Class java.security.AccessController | ||
|
||
public final class java.security.AccessController extends java.lang.Object { // Class Methods public static native Object doPrivileged(PrivilegedAction); public static native Object doPrivileged(PrivilegedAction, AccessControlContext); public static native Object doPrivileged(PrivilegedExceptionAction); public static native Object doPrivileged(PrivilegedExceptionAction, AccessControlContext); public static void checkPermission(Permission); public static AccessControlContext getContext(); }
See Also:Permission, ProtectionDomain, Policy
Class java.security.AlgorithmParameterGenerator | ||
|
||
public class java.security.AlgorithmParameterGenerator { // Constructors protected AlgorithmParameterGenerator( AlgorithmParameterGeneratorSpi, Provider, String); // Class Methods public static final AlgorithmParameterGenerator getInstance(String); public static final AlgorithmParameterGenerator getInstance(String, String); // Instance Methods public final String getAlgorithm(); public final Provider getProvider(); public final void init(int); public final void init(int, SecureRandom); public final void init(AlgorithmParameterSpec); public final void init(AlgorithmParameterSpec, SecureRandom); public final AlgorithmParameters generateParameters(); }
See also: AlgorithmParameters
Class java.security.AlgorithmParameterGeneratorSpi | ||
|
||
public abstract class java.security.AlgorithmParameterGeneratorSpi { // Instance Methods protected abstract void engineInit(int, SecureRandom); protected abstract void engineInit( AlgorithmParameterSpec, SecureRandom); protected abstract AlgorithmParameters engineGenerateParameters(); }
See also: AlgorithmParameterGenerator
Class java.security.AlgorithmParameters | ||
|
||
public class java.security.AlgorithmParameters { // Class Methods public static final AlgorithmParameters getInstance(String); public static final AlgorithmParameters getInstance( String, String); // Constructors protected AlgorithmParameters(AlgorithmParametersSpi, Provider, String); // Instance Methods public final String getAlgorithm(); public final Provider getProvider(); public final void init(AlgorithmParameterSpec); public final void init(byte[]); public final void init(byte[], String); public final AlgorithmParameterSpec getParameterSpec(Class); public final byte[] getEncoded(); public final byte[] getEncoded(String); public final String toString(); }
See also: KeyPairGenerator
Class java.security.AlgorithmParametersSpi | ||
|
||
public abstract class java.security.AlgorithmParametersSpi extends java.lang.Object { // Constructors public AlgorithmParametersSpi(); // Protected Instance Methods protected abstract byte[] engineGetEncoded(); protected abstract byte[] engineGetEncoded(String); protected abstract AlgorithmParameterSpec engineGetParameterSpec(Class); protected abstract void engineInit(AlgorithmParameterSpec); protected abstract void engineInit(byte[]); protected abstract void engineInit(byte[], String); protected abstract String engineToString(); }
See also: AlgorithmParameters
Class java.security.AllPermission | ||
|
||
public final class java.security.AllPermission extends java.security.Permission { // Constructors public AllPermission(); public AllPermission(String, String); // Instance Methods public boolean equals(Object); public String getActions(); public int hashCode(); public boolean implies(Permission); public PermissionCollection newPermissionCollection(); }
See also: Permission
Class java.security.BasicPermission | ||
|
||
public abstract class java.security.BasicPermission extends java.security.Permission implements java.io.Serializable { // Constructors public BasicPermission(String); public BasicPermission(String, String); // Instance Methods public boolean equals(Object); public String getActions(); public int hashCode(); public boolean implies(Permission); public PermissionCollection newPermissionCollection(); }
See also: Permission, PermissionCollection
Class java.security.CodeSource | ||
|
||
public class java.security.CodeSource extends java.lang.Object implements java.io.Serializable { // Constructors public CodeSource(URL, Certificate[]); // Instance Methods public boolean equals(Object); public final Certificate[] getCertificates(); public boolean implies(); public final URL getLocation(); public int hashCode(); public String toString(); }
See also: SecureClassLoader, ProtectionDomain
Class java.security.DigestInputStream | ||
|
||
public class java.security.DigestInputStream extends java.io.FilterInputStream { // Variables protected MessageDigest digest; // Constructors public DigestInputStream(InputStream, MessageDigest); // Instance Methods public MessageDigest getMessageDigest(); public void on(boolean); public int read(); public int read(byte[], int, int); public void setMessageDigest(MessageDigest); public String toString(); }
See also: DigestOutputStream, MessageDigest
Class java.security.DigestOutputStream | ||
|
||
public classs java.security.DigestOutputStream extends java.io.FilterOutputStream { // Variables protected MessageDigest digest; // Constructors public DigestOutputStream(OutputStream, MessageDigest); // Instance Methods public MessageDigest getMessageDigest(); public void on(boolean); public void setMessageDigest(MessageDigest); public String toString(); public void write(int); public void write(byte[], int, int); }
See also: DigestInputStream, MessageDigest
Interface java.security.Guard | ||
|
||
public abstract interface java.security.Guard { // Instance Methods public abstract void checkGuard(Object); }
See also: GuardedObject, Permission
Class java.security.GuardedObject | ||
|
||
public class java.security.GuardedObject extends java.lang.Object implements java.io.Serializable { // Constructors public GuardedObject(Serializable, Guard); // Instance Methods public Object getObject(); }
See also: Guard
Class java.security.Identity | ||
|
||
public abstract class java.security.Identity extends java.lang.Object implements java.security.Principal, java.io.Serializable { // Constructors protected Identity(); public Identity(String); public Identity(String, IdentityScope); // Instance Methods public void addCertificate(Certificate); public final boolean equals(Object); public Certificate[] certificates(); public String getInfo(); public final String getName(); public PublicKey getPublicKey(); public final IdentityScope getScope(); public int hashCode(); public void removeCertificate(Certificate); public void setInfo(String); public void setPublicKey(PublicKey); public String toString(); public String toString(boolean); // Protected Instance Methods protected boolean identityEquals(Identity); }
See also: Certificate, IdentityScope, Principal, PublicKey
Class java.security.IdentityScope | ||
|
||
public abstract class java.security.IdentityScope extends java.security.Identity { // Constructors protected IdentityScope(); public IdentityScope(String); public IdentityScope(String, IdentityScope); // Class Methods public static IdentityScope getSystemScope(); protected static void setSystemScope(IdentityScope); // Instance Methods public abstract void addIdentity(Identity); public abstract Identity getIdentity(String); public Identity getIdentity(Principal); public abstract Identity getIdentity(PublicKey); public abstract Enumeration identities(); public abstract void removeIdentity(Identity); public abstract int size(); public String toString(); }
See also: Identity
Interface java.security.Key | ||
|
||
public abstract interface java.security.Key implements java.io.Serializable { // Instance Methods public abstract String getAlgorithm(); public abstract byte[] getEncoded(); public abstract String getFormat(); }
See also: PrivateKey, PublicKey, SecretKey
Class java.security.KeyFactory | ||
|
||
public class java.security.KeyFactory extends java.lang.Object { // Constructors protected KeyFactory(KeyFactorySpi, Provider, String); // Class Methods public static final KeyFactory getInstance(String); public static final KeyFactory getInstance(String, String); // Instance Methods public final PrivateKey generatePrivate(KeySpec); public final PublicKey generatePublic(KeySpec); public final String getAlgorithm(); public final KeySpec getKeySpec(Key, Class); public final Provider getProvider(); public final Key translateKey(Key); }
See also: KeyFactorySpi, KeySpec
Class java.security.KeyFactorySpi | ||
|
||
public abstract class java.security.KeyFactorySpi extends java.lang.Object { // Constructors public KeyFactorySpi(); // Protected Instance Methods protected abstract PrivateKey engineGeneratePrivate(KeySpec); protected abstract PublicKey engineGeneratePublic(KeySpec); protected abstract KeySpec engineGetKeySpec(Key, Class); protected abstract Key engineTranslateKey(Key); }
See also: KeyFactory, KeySpec
Class java.security.KeyPair | ||
|
||
public final class java.security.KeyPair extends java.lang.Object { // Constructors public KeyPair(PublicKey, PrivateKey); // Instance Methods public PrivateKey getPrivate(); public PublicKey getPublic(); }
See also: KeyPairGenerator, PrivateKey, PublicKey
Class KeyPairGenerator | ||
|
||
public abstract class java.security.KeyPairGenerator extends java.security.KeyPairGeneratorSpi { // Constructors protected KeyPairGenerator(String); // Class Methods public static KeyPairGenerator getInstance(String); public static KeyPairGenerator getInstance(String, String); // Instance Methods public final KeyPair genKeyPair(); public String getAlgorithm(); public final Provider getProvider(); public void initialize(int); public void initialize(int, SecureRandom) public void initialize(AlgorithmParameterSpec, SecureRandom); public void initialize(AlgorithmParameterSpec); }
See also: AlgorithmParameterSpec, KeyPair
Class KeyPairGeneratorSpi | ||
|
||
public abstract class java.security.KeyPairGeneratorSpi extends java.lang.Object { // Constructors public KeyPairGeneratorSpi(); // Instance Methods public abstract KeyPair generateKeyPair(); public abstract void initialize(int, SecureRandom); public void initialize(AlgorithmParameterSpec, SecureRandom); }
See also: AlgorithmParameterSpec, KeyPairGenerator, SecureRandom
Class java.security.KeyStore | ||
|
||
public abstract class java.security.KeyStore extends java.lang.Object { // Constructors protected KeyStore(KeyStoreSpi, Provider, String); // Class Methods public static final String getDefaultType(); public static KeyStore getInstance(String); public static KeyStore getInstance(String, String); // Instance Methods public final Enumeration aliases(); public final boolean containsAlias(String); public final void deleteEntry(String); public final Certificate getCertificate(String); public final String getCertificateAlias(Certificate); public final Certificate[] getCertificateChain(String); public final Date getCreationDate(String); public final Key getKey(String, char[]); public final Provider getProvider(); public final String getType(); public final boolean isCertificateEntry(String); public final boolean isKeyEntry(String); public final void load(InputStream, char[]); public final void setCertificateEntry(String, Certificate); public final void setKeyEntry(String, Key, char[], Certificate[]); public final void setKeyEntry(String, byte[], Certificate[]); public final int size(); public final void store(OutputStream, char[]); }
See also: Certificate, PublicKey
Class java.security.MessageDigest | ||
|
||
public abstract class java.security.MessageDigest extends java.security.MessageDigestSpi { // Constructors protected MessageDigest(String); // Class Methods public static MessageDigest getInstance(String); public static MessageDigest getInstance(String, String); public static boolean isEqual(byte[], byte[]); // Instance Methods public Object clone(); public byte[] digest(); public byte[] digest(byte[]); public int digest(byte[], int, int); public final String getAlgorithm(); public final int getDigestLength(); public final Provider getProvider(); public void reset(); public String toString(); public void update(byte); public void update(byte[]); public void update(byte[], int, int); }
Class java.security.MessageDigestSpi | ||
|
||
public abstract class java.security.MessageDigestSpi extends java.lang.Object { // Constructors public MessageDigestSpi(); // Instance Methods public Object clone(); // Protected Instance Methods protected abstract byte[] engineDigest(); protected int engineDigest(byte[], int, int); protected int engineGetDigestLength(); protected abstract void engineReset(); protected abstract void engineUpdate(byte); protected abstract void engineUpdate(byte[], int, int); }
See also: MessageDigest
Class java.security.Permission | ||
|
||
public abstract class java.security.Permission extends java.lang.Object implements java.security.Guard, java.io.Serializable { // Constructors public Permission(String); // Instance Methods public void checkGuard(Object); public abstract boolean equals(Object); public abstract String getActions(); public final String getName(); public abstract int hashCode(); public abstract boolean isReadOnly(); public void setReadOnly(); public PermissionCollection newPermissionCollection(); public String toString(); }
See also: AccessController, BasicPermission, PermissionCollection, Policy
Class java.security.PermissionCollection | ||
|
||
public abstract class java.security.PermissionCollection extends java.lang.Object implements java.io.Serializable { // Constructors public PermissionCollection(); // Instance Methods public abstract void add(Permission); public abstract Enumeration elements(); public abstract boolean implies(Permission); public boolean isReadOnly(); public void setReadOnly(); public String toString(); }
See also: Permission, Permissions
Class java.security.Permissions | ||
|
||
public final class java.security.Permissions extends java.security.PermissionCollection implements java.io.Serializable { // Constructors public Permissions(); // Instance Methods public void add(Permission); public Enumeration elements(); public boolean implies(Permission); }
See also: Permission, PermissionCollection, Policy
Class java.security.Policy | ||
|
||
public abstract class java.security.Policy extends java.lang.Object { // Constructors public Policy(); // Class Methods public static Policy getPolicy(); public static void setPolicy(Policy); // Instance Methods public abstract PermissionCollection getPermissions(CodeSource); public abstract void refresh(); }
See also: Permission, Permissions
Interface java.security.Principal | ||
|
||
public abstract interface java.security.Principal { // Instance Methods public abstract boolean equals(Object); public abstract String getName(); public abstract int hashCode(); public abstract String toString(); }
See also: Identity
Interface java.security.PrivateKey | ||
|
||
public abstract interface java.security.PrivateKey implements java.security.Key { }
See also: Key, PublicKey
Class java.security.ProtectionDomain | ||
|
||
public class java.security.ProtectionDomain extends java.lang.Object { // Constructors public ProtectionDomain(CodeSource, PermissionCollection); // Instance Methods public final CodeSource getCodeSource(); public final PermissionCollection getPermissions(); public boolean implies(Permission); public String toString(); }
See also: AccessController, CodeSource, Permissions
Class java.security.Provider | ||
|
||
public abstract class java.security.Provider extends java.util.Properties { // Constructors protected Provider(String, double, String); // Instance Methods public synchronized void clear(); public Set entrySet(); public String getInfo(); public String getName(); public double getVersion(); public Set keySet(); public synchronized void load(InputStream); public synchronized Object put(Object, Object); public synchronized void putAll(Map); public synchronized Object remove(Object); public String toString(); public Collection values(); }
See also: Security
Interface java.security.PublicKey | ||
|
||
public abstract interface java.security.PublicKey implements java.security.Key { }
See also: Key, PrivateKey
Class java.security.SecureClassLoader | ||
|
||
public class java.security.SecureClassLoader extends java.lang.ClassLoader { // Constructors protected SecureClassLoader(); protected SecureClassLoader(ClassLoader); // Protected Instance Methods protected final Class defineClass(String, byte[], int, int, CodeSource); protected PermissionCollection getPermissions(CodeSource); }
See also: ClassLoader, CodeSource, ProtectionDomain
Class java.security.SecureRandom | ||
|
||
public class java.security.SecureRandom extends java.util.Random { // Constructors public SecureRandom(); public SecureRandom(byte[]); // Class Methods public static byte[] getSeed(int); // Instance Methods public synchronized void nextBytes(byte[]); public void setSeed(long); public synchronized void setSeed(byte[]); // Protected Instance Methods protected final int next(int); }
Class java.security.Security | ||
|
||
public final class java.security.Security extends java.lang.Object { // Class Methods public static int addProvider(Provider); public static String getAlgorithmProperty(String, String); public static String getProperty(String); public static Provider getProvider(String); public static Provider[] getProviders(); public static int insertProviderAt(Provider, int); public static void removeProvider(String); public static void setProperty(String, String); }
See also: Provider
Class java.security.SecurityPermission | ||
|
||
public final class java.security.SecurityPermission extends java.security.BasicPermission { // Constructors public SecurityPermission(String); public SecurityPermission(String, String); }
See also: BasicPermission
Class java.security.Signature | ||
|
||
public abstract class java.security.Signature extends java.security.SignatureSpi { // Constants protected static final int SIGN; protected static final int UNINITIALIZED; protected static final int VERIFY; // Variables protected int state; // Constructors protected Signature(String); // Class Methods public static Signature getInstance(String); public static Signature getInstance(String, String); // Instance Methods public Object clone(); public final String getAlgorithm(); public final Object getParameter(String); public final Provider getProvider(); public final void initSign(PrivateKey); public final void initSign(PrivateKey, SecureRandom); public final void initVerify(PublicKey); public final void setParameter(String, Object); public final void setParameter(AlgorithmParameterSpec); public final byte[] sign(); public final int sign(byte[], int, int); public String toString(); public final void update(byte); public final void update(byte[]); public final void update(byte[], int, int); public final boolean verify(byte[]); }
See also: Provider
Class java.security.SignatureSpi | ||
|
||
public abstract class java.security.SignatureSpi extends java.lang.Object { // Variables protected SecureRandom appRandom; // Constructors public SignatureSpi(); // Instance Methods public Object clone(); // Protected Instance Methods protected abstract Object engineGetParameter(String); protected abstract void engineInitSign(PrivateKey); protected void engineInitSign(PrivateKey, SecureRandom); protected abstract void engineInitVerify(PublicKey); protected abstract void engineSetParameter(String, Object); protected void engineSetParameter(AlgorithmParameterSpec); protected abstract byte[] engineSign(); protected final int engineSign(byte[], int, int); protected abstract void engineUpdate(byte); protected abstract void engineUpdate(byte[], int, int); protected abstract boolean engineVerify(byte[]); }
See also: Provider, Signature
Class java.security.SignedObject | ||
|
||
public final class java.security.SignedObject extends java.lang.Object implements java.io.Serializable { // Constructors public SignedObject(Serializable, PrivateKey, Signature); // Instance Methods public String getAlgorithm(); public Object getObject(); public byte[] getSignature(); public boolean verify(PublicKey, Signature); }
See also: Signature
Class java.security.Signer | ||
|
||
public abstract class java.security.Signer extends java.security.Identity { // Constructors protected Signer(); public Signer(String); public Signer(String, IdentityScope); // Instance Methods public PrivateKey getPrivateKey(); public final void setKeyPair(KeyPair); public String toString(); }
See also: Identity, Principal
Class java.security.UnresolvedPermission | ||
|
||
public final class UnresolvedPermission extends Permission implements java.io.Serializable { // Constructors public UnresolvedPermission(String, String, String, Certificate[]); // Instance methods public boolean equals(Object); public int hashCode(); public boolean implies(Permission); }
See also: Permission
Copyright © 2001 O'Reilly & Associates. All rights reserved.
This HTML Help has been published using the chm2web software. |