Build 1.0_r1(from source)

java.security
Class CodeSource

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

public class CodeSource
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
CodeSource(URL location, Certificate[] certs)
          Constructs a new instance of this class with its url and certificates fields filled in from the arguments.
CodeSource(URL location, CodeSigner[] signers)
           
 
Method Summary
 boolean equals(Object obj)
          Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
 Certificate[] getCertificates()
          Returns the certificates held onto by the receiver.
 CodeSigner[] getCodeSigners()
           
 URL getLocation()
          Returns the receiver's location.
 int hashCode()
          Returns an integer hash code for the receiver.
 boolean implies(CodeSource cs)
          Indicates whether the argument code source is implied by the receiver.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeSource

public CodeSource(URL location,
                  Certificate[] certs)
Constructs a new instance of this class with its url and certificates fields filled in from the arguments.

Parameters:
location - URL the URL.
certs - Certificate[] the Certificates.

CodeSource

public CodeSource(URL location,
                  CodeSigner[] signers)
Method Detail

equals

public boolean equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. In this case, the receiver and the object must have the same URL and the same collection of certificates.

Overrides:
equals in class Object
Parameters:
obj - the object to compare with this object
Returns:
true if the object is the same as this object false if it is different from this object
See Also:
hashCode()

getCertificates

public final Certificate[] getCertificates()
Returns the certificates held onto by the receiver.

Returns:
Certificate[] the receiver's certificates

getCodeSigners

public final CodeSigner[] getCodeSigners()

getLocation

public final URL getLocation()
Returns the receiver's location.

Returns:
URL the receiver's URL

hashCode

public int hashCode()
Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Overrides:
hashCode in class Object
Returns:
int the receiver's hash.
See Also:
equals(java.lang.Object)

implies

public boolean implies(CodeSource cs)
Indicates whether the argument code source is implied by the receiver.

Parameters:
cs - CodeSource the code source to check
Returns:
boolean true if the argument code source is implied by the receiver, and false if it is not.

toString

public String toString()
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature