Class AnonymousProvider
java.lang.Object
org.eclipse.milo.opcua.sdk.client.identity.AnonymousProvider
- All Implemented Interfaces:
IdentityProvider
An
IdentityProvider that will choose the first available anonymous UserTokenPolicy.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdentityToken(org.eclipse.milo.opcua.stack.core.types.structured.EndpointDescription endpoint, org.eclipse.milo.opcua.stack.core.types.builtin.ByteString serverNonce) Return theUserIdentityTokenandSignatureData(if applicable for the token) to use when activating a session.toString()
-
Field Details
-
INSTANCE
-
-
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:IdentityProviderReturn theUserIdentityTokenandSignatureData(if applicable for the token) to use when activating a session.- Specified by:
getIdentityTokenin interfaceIdentityProvider- Parameters:
endpoint- theEndpointDescriptionbeing connected to.- Returns:
- a
SignedIdentityTokencontaining theUserIdentityTokenandSignatureData. - Throws:
Exception
-
toString
-