Uses of Class
org.eclipse.milo.opcua.stack.core.UaException
Packages that use UaException
Package
Description
-
Uses of UaException in org.eclipse.milo.opcua.stack.core
Subclasses of UaException in org.eclipse.milo.opcua.stack.coreMethods in org.eclipse.milo.opcua.stack.core that return types with arguments of type UaExceptionModifier and TypeMethodDescriptionstatic Optional<UaException>Ifexis aUaException, or if aUaExceptioncan be found by walking up the exception cause chain, return it. -
Uses of UaException in org.eclipse.milo.opcua.stack.core.channel
Methods in org.eclipse.milo.opcua.stack.core.channel that throw UaExceptionModifier and TypeMethodDescriptiondefault ByteStringSecureChannel.getLocalCertificateBytes()default ByteStringSecureChannel.getLocalCertificateChainBytes()default ByteStringSecureChannel.getLocalCertificateThumbprint()default ByteStringSecureChannel.getRemoteCertificateBytes()default ByteStringSecureChannel.getRemoteCertificateChainBytes()default ByteStringSecureChannel.getRemoteCertificateThumbprint()voidServerSecureChannel.setRemoteCertificate(byte[] certificateBytes) Constructors in org.eclipse.milo.opcua.stack.core.channel with parameters of type UaExceptionModifierConstructorDescription -
Uses of UaException in org.eclipse.milo.opcua.stack.core.channel.headers
Methods in org.eclipse.milo.opcua.stack.core.channel.headers that throw UaExceptionModifier and TypeMethodDescriptionstatic SecureMessageHeaderSecureMessageHeader.decode(io.netty.buffer.ByteBuf buffer) static voidSecureMessageHeader.encode(SecureMessageHeader header, io.netty.buffer.ByteBuf buffer) default intHeaderDecoder.getMessageLength(io.netty.buffer.ByteBuf buffer, int maxMessageLength) Get the message length from aByteBufcontaining aTcpMessageEncoder. -
Uses of UaException in org.eclipse.milo.opcua.stack.core.channel.messages
Methods in org.eclipse.milo.opcua.stack.core.channel.messages that throw UaExceptionModifier and TypeMethodDescriptionstatic HelloMessageHelloMessage.decode(io.netty.buffer.ByteBuf buffer) static AcknowledgeMessageTcpMessageDecoder.decodeAcknowledge(io.netty.buffer.ByteBuf buffer) static ErrorMessageTcpMessageDecoder.decodeError(io.netty.buffer.ByteBuf buffer) static HelloMessageTcpMessageDecoder.decodeHello(io.netty.buffer.ByteBuf buffer) static io.netty.buffer.ByteBufTcpMessageEncoder.encode(AcknowledgeMessage acknowledgeMessage) static io.netty.buffer.ByteBufTcpMessageEncoder.encode(ErrorMessage errorMessage) static io.netty.buffer.ByteBufTcpMessageEncoder.encode(HelloMessage helloMessage) static MessageTypeMessageType.fromMediumInt(int messageType) -
Uses of UaException in org.eclipse.milo.opcua.stack.core.security
Methods in org.eclipse.milo.opcua.stack.core.security that throw UaExceptionModifier and TypeMethodDescriptionstatic SecurityAlgorithmstatic SecurityPolicyvoidCertificateValidator.validateCertificateChain(List<X509Certificate> certificateChain, @Nullable String applicationUri, @Nullable String[] validHostnames) Check that trust can be established using the provided certificate chain and then validate every certificate in the chain.voidDefaultClientCertificateValidator.validateCertificateChain(List<X509Certificate> certificateChain, String applicationUri, String[] validHostNames) voidDefaultServerCertificateValidator.validateCertificateChain(List<X509Certificate> certificateChain, @Nullable String applicationUri, @Nullable String[] validHostnames) -
Uses of UaException in org.eclipse.milo.opcua.stack.core.types.builtin
Methods in org.eclipse.milo.opcua.stack.core.types.builtin that throw UaExceptionModifier and TypeMethodDescriptionExpandedNodeId.toNodeIdOrThrow(NamespaceTable namespaceTable) LikeExpandedNodeId.toNodeId(NamespaceTable)but throws an exception instead of returning an emptyOptional. -
Uses of UaException in org.eclipse.milo.opcua.stack.core.util
Methods in org.eclipse.milo.opcua.stack.core.util that throw UaExceptionModifier and TypeMethodDescriptionstatic X509CertificateCertificateUtil.decodeCertificate(byte[] certificateBytes) Decode a DER-encoded X.509 certificate.static X509CertificateCertificateUtil.decodeCertificate(InputStream inputStream) Decode a DER-encoded X.509 certificate.static List<X509Certificate>CertificateUtil.decodeCertificates(byte[] certificateBytes) Decode either a sequence of DER-encoded X.509 certificates or a PKCS#7 certificate chain.static List<X509Certificate>CertificateUtil.decodeCertificates(InputStream inputStream) Decode either a sequence of DER-encoded X.509 certificates or a PKCS#7 certificate chain.static ByteStringCertificateUtil.getCertificateChainBytes(List<X509Certificate> certificateChain) static byte[]SignatureUtil.hmac(SecurityAlgorithm securityAlgorithm, byte[] secretKey, ByteBuffer... buffers) Compute the HMAC of the provided buffers.static byte[]SignatureUtil.sign(SecurityAlgorithm securityAlgorithm, PrivateKey privateKey, ByteBuffer... buffers) Sign the contents of the provided buffers using the providedSecurityAlgorithm.static ByteStringCertificateUtil.thumbprint(X509Certificate certificate) static voidNonceUtil.validateNonce(ByteString nonce) Validate thatnonceis at leastNonceUtil.MINIMUM_NONCE_LENGTHand is non-zeroes.static voidNonceUtil.validateNonce(ByteString nonce, int minimumLength) Validate thatnonceis at leastminimumLengthand is non-zeroes.static voidNonceUtil.validateNonce(ByteString nonce, SecurityPolicy securityPolicy) Validate thatnoncemeets the minimum length requirement forsecurityPolicyand is non-zeroes.static voidSignatureUtil.verify(SecurityAlgorithm algorithm, X509Certificate certificate, byte[] dataBytes, byte[] signatureBytes) Verify thatsignatureBytesis a valid signature produced by the private key ofcertificatehaving signeddataBytesusingalgorithm. -
Uses of UaException in org.eclipse.milo.opcua.stack.core.util.validation
Methods in org.eclipse.milo.opcua.stack.core.util.validation that throw UaExceptionModifier and TypeMethodDescriptionstatic PKIXCertPathBuilderResultCertificateValidationUtil.buildTrustedCertPath(List<X509Certificate> certificateChain, Collection<X509Certificate> trustedCertificates, Collection<X509Certificate> issuerCertificates) Given a possibly partial certificate chain with at least one certificate in it, builds a path to a trust anchor using a collection of trusted and issuer certificates as possible intermediate and root CAs, and then ensures that at least one certificate in the resulting path is in the trusted collection.static voidCertificateValidationUtil.checkApplicationUri(X509Certificate certificate, String applicationUri) Validate that the application URI matches the SubjectAltName URI in the given certificate.static voidCertificateValidationUtil.checkEndEntityExtendedKeyUsage(X509Certificate certificate, boolean endEntityIsClient) static voidCertificateValidationUtil.checkEndEntityKeyUsage(X509Certificate certificate) static voidCertificateValidationUtil.checkHostnameOrIpAddress(X509Certificate certificate, String... hostNames) Validate that one ofhostNamesmatches a SubjectAltName DNSName or IPAddress entry in the certificate.static voidCertificateValidationUtil.checkValidity(X509Certificate certificate, boolean endEntity) Check thatcertificateis valid (the current date and time are within the validity period).static StringCertificateValidationUtil.getSubjectAltNameUri(X509Certificate certificate) static voidCertificateValidationUtil.validateTrustedCertPath(CertPath certPath, TrustAnchor trustAnchor, Collection<X509CRL> crls, Set<ValidationCheck> validationChecks, boolean endEntityIsClient) Validates the trusted certificate path represented by aTrustAnchorand aCertPaththat may or may not be empty, depending on the length of the path.