Package org.osgi.framework
Class SignerProperty
java.lang.Object
org.osgi.framework.SignerProperty
Package private class used by permissions for filter matching on signer key
during filter expression evaluation in the permission implies method.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignerProperty
(String pattern) String constructor used by the filter matching algorithm to construct a SignerProperty from the attribute value in a filter expression.SignerProperty
(Bundle bundle) Used by the permission implies method to build the properties for a filter match. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Used by the filter matching algorithm.int
hashCode()
Since the equals method does not obey the general equals contract, this method cannot generate hash codes which obey the equals contract.(package private) boolean
Check if the bundle is signed.
-
Field Details
-
bundle
-
pattern
-
-
Constructor Details
-
SignerProperty
String constructor used by the filter matching algorithm to construct a SignerProperty from the attribute value in a filter expression.- Parameters:
pattern
- Attribute value in the filter expression.
-
SignerProperty
SignerProperty(Bundle bundle) Used by the permission implies method to build the properties for a filter match.- Parameters:
bundle
- The bundle whose signers are to be matched.
-
-
Method Details
-
equals
Used by the filter matching algorithm. This methods does NOT satisfy the normal equals contract. Since the class is only used in filter expression evaluations, it only needs to support comparing an instance created with a Bundle to an instance created with a pattern string from the filter expression. -
hashCode
public int hashCode()Since the equals method does not obey the general equals contract, this method cannot generate hash codes which obey the equals contract. -
isBundleSigned
boolean isBundleSigned()Check if the bundle is signed.- Returns:
- true if constructed with a bundle that is signed.
-