protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException {
  throw new UnsupportedOperationException();
}

protected byte [ ] engineWrap ( Key key ) throws IllegalBlockSizeException , InvalidKeyException { throw new UnsupportedOperationException ( ) ; }
wrap a key . < p > this concrete method has been added to this previously - defined abstract class . ( for backwards compatibility , it cannot be abstract . ) it may be overridden by a provider to wrap a key . such an override is expected to throw an illegalblocksizeexception or invalidkeyexception ( under the specified circumstances ) , if the given key cannot be wrapped . if this method is not overridden , it always throws an unsupportedoperationexception .
