ObjectMetadata toObjectMetadata(ObjectMetadata metadata, CryptoMode mode) {
        return mode == CryptoMode.EncryptionOnly && !usesKMSKey()
               ? toObjectMetadataEO(metadata)
               : toObjectMetadata(metadata);
    }
ObjectMetadata toObjectMetadata ( ObjectMetadata metadata , CryptoMode mode ) { return mode == CryptoMode . EncryptionOnly && ! usesKMSKey ( ) ? toObjectMetadataEO ( metadata ) : toObjectMetadata ( metadata ) ; }
Returns the given metadata updated with this content crypto material.