Class KeyResolverSpi

    • Field Detail

      • globalResolver

        protected boolean globalResolver
      • secureValidation

        protected boolean secureValidation
    • Constructor Detail

      • KeyResolverSpi

        public KeyResolverSpi()
    • Method Detail

      • setSecureValidation

        public void setSecureValidation​(boolean secureValidation)
        Set whether secure validation is enabled or not. The default is false.
      • engineCanResolve

        public boolean engineCanResolve​(Element element,
                                        String baseURI,
                                        StorageResolver storage)
        This method returns whether the KeyResolverSpi is able to perform the requested action.
        Parameters:
        element -
        baseURI -
        storage -
        Returns:
        whether the KeyResolverSpi is able to perform the requested action.
      • engineSetProperty

        public void engineSetProperty​(String key,
                                      String value)
        Method engineSetProperty
        Parameters:
        key -
        value -
      • engineGetProperty

        public String engineGetProperty​(String key)
        Method engineGetProperty
        Parameters:
        key -
        Returns:
        obtain the property appointed by key
      • understandsProperty

        public boolean understandsProperty​(String propertyToTest)
        Method understandsProperty
        Parameters:
        propertyToTest -
        Returns:
        true if understood the property
      • setGlobalResolver

        public void setGlobalResolver​(boolean globalResolver)
      • getDocFromBytes

        protected static Element getDocFromBytes​(byte[] bytes,
                                                 boolean secureValidation)
                                          throws KeyResolverException
        Parses a byte array and returns the parsed Element.
        Parameters:
        bytes -
        Returns:
        the Document Element after parsing bytes
        Throws:
        KeyResolverException - if something goes wrong