Class SignerProperty


  • final class SignerProperty
    extends java.lang.Object
    Package private class used for filter matching on signer key during filter expression evaluation in the permission implies method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.osgi.framework.Bundle bundle  
      private java.lang.String pattern  
    • Constructor Summary

      Constructors 
      Constructor Description
      SignerProperty​(java.lang.String pattern)
      String constructor used by the filter matching algorithm to construct a SignerProperty from the attribute value in a filter expression.
      SignerProperty​(org.osgi.framework.Bundle bundle)
      Used by the permission implies method to build the properties for a filter match.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      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 isBundleSigned()
      Check if the bundle is signed.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bundle

        private final org.osgi.framework.Bundle bundle
      • pattern

        private final java.lang.String pattern
    • Constructor Detail

      • SignerProperty

        public SignerProperty​(java.lang.String pattern)
        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​(org.osgi.framework.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 Detail

      • equals

        public boolean equals​(java.lang.Object o)
        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.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - SignerProperty to compare against.
        Returns:
        true if the DN name chain matches the pattern.
      • 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.
        Overrides:
        hashCode in class java.lang.Object
      • isBundleSigned

        boolean isBundleSigned()
        Check if the bundle is signed.
        Returns:
        true if constructed with a bundle that is signed.