private static PascalByteString createPascalString(byte[] bytes) {
        if (null == bytes) {
            return NULL_BYTE_STRING;
        }
        return new PascalByteString(bytes.length, bytes);
    }
Creates an IdentityToken to authenticate with a server.

@param tokenType      the token type
@param securityPolicy the security policy
@return returns an ExtensionObject with an IdentityToken.
plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/context/SecureChannel.java