java.lang.Objectjava.security.CodeSource
public class CodeSource
This class extends the concept of a codebase to encapsulate not only the location (URL) but also the certificate chains that were used to verify signed code originating from that location.
| Constructor Summary | |
|---|---|
CodeSource(URL url,
Certificate[] certs)
Constructs a CodeSource and associates it with the specified location and set of certificates. |
|
CodeSource(URL url,
CodeSigner[] signers)
Constructs a CodeSource and associates it with the specified location and set of code signers. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Tests for equality between the specified object and this object. |
Certificate[] |
getCertificates()
Returns the certificates associated with this CodeSource. |
CodeSigner[] |
getCodeSigners()
Returns the code signers associated with this CodeSource. |
URL |
getLocation()
Returns the location associated with this CodeSource. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(CodeSource codesource)
Returns true if this CodeSource object "implies" the specified CodeSource. |
String |
toString()
Returns a string describing this CodeSource, telling its URL and certificates. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CodeSource(URL url, Certificate[] certs)
url - the location (URL).certs - the certificate(s). It may be null. The contents of the
array are copied to protect against subsequent modification.public CodeSource(URL url, CodeSigner[] signers)
url - the location (URL).signers - the code signers. It may be null. The contents of the
array are copied to protect against subsequent modification.| Method Detail |
|---|
public int hashCode()
Object.equals(java.lang.Object),
Hashtablepublic boolean equals(Object obj)
obj - the object to test for equality with this object.
Object.hashCode(),
Hashtablepublic final URL getLocation()
public final Certificate[] getCertificates()
If this CodeSource object was created using the
CodeSource(URL url, CodeSigner[] signers)
constructor then its certificate chains are extracted and used to
create an array of Certificate objects. Each signer certificate is
followed by its supporting certificate chain (which may be empty).
Each signer certificate and its supporting certificate chain is ordered
bottom-to-top (i.e., with the signer certificate first and the (root)
certificate authority last).
public final CodeSigner[] getCodeSigners()
If this CodeSource object was created using the
CodeSource(URL url, Certificate[] certs)
constructor then its certificate chains are extracted and used to
create an array of CodeSigner objects. Note that only X.509 certificates
are examined - all other certificate types are ignored.
public boolean implies(CodeSource codesource)
More specifically, this method makes the following checks, in order. If any fail, it returns false. If they all succeed, it returns true.
For example, the codesource objects with the following locations and null certificates all imply the codesource with the location "http://java.sun.com/classes/foo.jar" and null certificates:
http:
http://*.sun.com/classes/*
http://java.sun.com/classes/-
http://java.sun.com/classes/foo.jar
Note that if this CodeSource has a null location and a null
certificate chain, then it implies every other CodeSource.
codesource - CodeSource to compare against.
public String toString()
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
6 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)