JML

java.security
Class CodeSource

java.lang.Object
  extended byjava.security.CodeSource
All Implemented Interfaces:
Serializable

public class CodeSource
extends Object
implements Serializable


Field Summary
private  Certificate[] certs
           
private  CertificateFactory factory
           
private  URL location
           
private static long serialVersionUID
           
private  CodeSigner[] signers
           
private  SocketPermission sp
           
 
Constructor Summary
CodeSource(URL, Certificate[])
           
CodeSource(URL, CodeSigner[])
           
 
Method Summary
private  CodeSigner[] convertCertArrayToSignerArray(Certificate[])
           
 boolean equals(Object)
           
 Certificate[] getCertificates()
           
 CodeSigner[] getCodeSigners()
           
 URL getLocation()
           
 int hashCode()
           
 boolean implies(CodeSource)
           
private  boolean matchCerts(CodeSource, boolean)
           
private  boolean matchLocation(CodeSource)
           
private  void readObject(ObjectInputStream)
           
 String toString()
           
private  void writeObject(ObjectOutputStream)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

location

private URL location

factory

private transient CertificateFactory factory

certs

private transient Certificate[] certs

sp

private transient SocketPermission sp

signers

private transient CodeSigner[] signers

serialVersionUID

private static final long serialVersionUID
Constructor Detail

CodeSource

public CodeSource(URL,
                  Certificate[])

CodeSource

public CodeSource(URL,
                  CodeSigner[])
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object)
Overrides:
equals in class Object

getLocation

public final URL getLocation()

getCertificates

public final Certificate[] getCertificates()

getCodeSigners

public final CodeSigner[] getCodeSigners()

implies

public boolean implies(CodeSource)

matchCerts

private boolean matchCerts(CodeSource,
                           boolean)

matchLocation

private boolean matchLocation(CodeSource)

toString

public String toString()
Overrides:
toString in class Object

writeObject

private void writeObject(ObjectOutputStream)
                  throws IOException
Throws:
IOException

readObject

private void readObject(ObjectInputStream)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

convertCertArrayToSignerArray

private CodeSigner[] convertCertArrayToSignerArray(Certificate[])

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.