Class Crypto

    • Constructor Detail

      • Crypto

        public Crypto()
    • Method Detail

      • getJwkUtil

        public edu.uiuc.ncsa.security.util.jwk.JWKUtil2 getJwkUtil()
      • setJwkUtil

        public void setJwkUtil​(edu.uiuc.ncsa.security.util.jwk.JWKUtil2 jwkUtil)
      • getKeys

        protected edu.uiuc.ncsa.security.util.jwk.JSONWebKey getKeys​(QDLStem keys)
      • webKeyToStem

        protected QDLStem webKeyToStem​(edu.uiuc.ncsa.security.util.jwk.JSONWebKey jsonWebKey)
      • decodeString

        protected String decodeString​(byte[] key,
                                      String s,
                                      boolean isEncrypt)
        Utility for symmetric key encode/decode.
        Parameters:
        key -
        s -
        isEncrypt -
        Returns:
      • isSingleKey

        protected boolean isSingleKey​(QDLStem stem)
        Is the stem a single key or a stem of keys? This is a simple-minded test and just checks if a required value for the keyis at the top level.
        Parameters:
        stem -
        Returns:
      • serializeToJSON

        public net.sf.json.JSONObject serializeToJSON()
        Description copied from interface: QDLModuleMetaClass
        Send back a serialization of state for this object. This allows for the state you choose to be serialized and then reloaded.

        NOTE

        There is no canonical form for this. Set it how you will and deserialize it accordingly.
        Specified by:
        serializeToJSON in interface QDLModuleMetaClass
        Returns: