nxt.authentication

## Class SecurityTokenFactory

- java.lang.Object
- - nxt.authentication.SecurityTokenFactory

-     public abstract class SecurityTokenFactory
      extends java.lang.Object

  Generate an authentication security token for a permissioned blockchain

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SecurityTokenFactory()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract SecurityToken` | `getSecurityToken(byte[] publicKey)` Create a new security token
    `abstract SecurityToken` | `getSecurityToken(java.nio.ByteBuffer buffer)` Create a new security token
    `static SecurityTokenFactory` | `getSecurityTokenFactory()` Get the security token factory

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SecurityTokenFactory

          public SecurityTokenFactory()

  - ### Method Detail

    - #### getSecurityTokenFactory

          public static SecurityTokenFactory getSecurityTokenFactory()

      Get the security token factory
      Returns:
        Security token factory or null if no provider available

    - #### getSecurityToken

          public abstract SecurityToken getSecurityToken(byte[] publicKey)

      Create a new security token
      Parameters:
        `publicKey` - Public key
      Returns:
        Security token

    - #### getSecurityToken

          public abstract SecurityToken getSecurityToken(java.nio.ByteBuffer buffer)

      Create a new security token
      Parameters:
        `buffer` - Byte buffer
      Returns:
        Security token