Top Description Fields Constructors Methods
org.osgi.framework

pack-priv final Class SignerProperty

extends Object
Class Inheritance
Imports
java.security.cert.X509Certificate, java.util.ArrayList, .List, .Map

Package private class used by permissions for filter matching on signer key during filter expression evaluation in the permission implies method.
Author
$Id: 53dec4a366c1c419baeb1e3b7d6b2b3bf172ad93 $

Field Summary

Modifier and TypeField and Description
private final Bundle
private final String

Constructor Summary

AccessConstructor and Description
public
SignerProperty(String
Attribute value in the filter expression.
pattern
)

String constructor used by the filter matching algorithm to construct a SignerProperty from the attribute value in a filter expression.

pack-priv
SignerProperty(Bundle
The bundle whose signers are to be matched.
bundle
)

Used by the permission implies method to build the properties for a filter match.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the DN name chain matches the pattern.
equals
(Object
SignerProperty to compare against.
o
)

Overrides java.lang.Object.equals.

Used by the filter matching algorithm.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Since the equals method does not obey the general equals contract, this method cannot generate hash codes which obey the equals contract.

pack-priv boolean

Returns:

true if constructed with a bundle that is signed.
isBundleSigned
()

Check if the bundle is signed.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

bundleback to summary
private final Bundle bundle
patternback to summary
private final String pattern

Constructor Detail

SignerPropertyback to summary
public SignerProperty(String pattern)

String constructor used by the filter matching algorithm to construct a SignerProperty from the attribute value in a filter expression.

Parameters
pattern:String

Attribute value in the filter expression.

SignerPropertyback to summary
pack-priv SignerProperty(Bundle bundle)

Used by the permission implies method to build the properties for a filter match.

Parameters
bundle:Bundle

The bundle whose signers are to be matched.

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.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.

Parameters
o:Object

SignerProperty to compare against.

Returns:boolean

true if the DN name chain matches the pattern.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Since the equals method does not obey the general equals contract, this method cannot generate hash codes which obey the equals contract.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object

Annotations
@Override
isBundleSignedback to summary
pack-priv boolean isBundleSigned()

Check if the bundle is signed.

Returns:boolean

true if constructed with a bundle that is signed.