java.lang.Object
org.eclipse.milo.opcua.sdk.client.identity.AnonymousProvider
All Implemented Interfaces:
IdentityProvider

public class AnonymousProvider extends Object implements IdentityProvider
An IdentityProvider that will choose the first available anonymous UserTokenPolicy.
  • Field Details

  • Constructor Details

    • AnonymousProvider

      public AnonymousProvider()
  • Method Details

    • getIdentityToken

      public SignedIdentityToken getIdentityToken(org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription endpoint, org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverNonce) throws Exception
      Description copied from interface: IdentityProvider
      Return the UserIdentityToken and SignatureData (if applicable for the token) to use when activating a session.
      Specified by:
      getIdentityToken in interface IdentityProvider
      Parameters:
      endpoint - the EndpointDescription being connected to.
      Returns:
      a SignedIdentityToken containing the UserIdentityToken and SignatureData.
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object