public static InternalKeyWrapAlgorithm fromExternal(CryptoKeyWrapAlgorithm external) {
        switch (external) {
            case RSA_OAEP_SHA1: return RSA_OAEP_SHA1;
            case AES_GCM_NoPadding: return AES_GCM_NoPadding;
            case KMS: return KMS;
            default: throw new SecurityException("Unknown key-wrapping algorithm: " + external.algorithmName());
        }
    }
The String representation of the algorithm common to Amazon Web Services independently of language used.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/keywrap/InternalKeyWrapAlgorithm.java