|
ActiveMQ example source code file (StubX509Certificate.java)
The ActiveMQ StubX509Certificate.java source code/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.activemq.transport.tcp; import java.math.BigInteger; import java.security.Principal; import java.security.PublicKey; import java.security.cert.X509Certificate; import java.util.Date; import java.util.Set; public class StubX509Certificate extends X509Certificate { private final Principal id; public StubX509Certificate(Principal id) { this.id = id; } public Principal getSubjectDN() { return this.id; } // --- Stubbed Methods --- public void checkValidity() { // TODO Auto-generated method stub } public void checkValidity(Date arg0) { // TODO Auto-generated method stub } public int getVersion() { // TODO Auto-generated method stub return 0; } public BigInteger getSerialNumber() { // TODO Auto-generated method stub return null; } public Principal getIssuerDN() { // TODO Auto-generated method stub return null; } public Date getNotBefore() { // TODO Auto-generated method stub return null; } public Date getNotAfter() { // TODO Auto-generated method stub return null; } public byte[] getTBSCertificate() { // TODO Auto-generated method stub return null; } public byte[] getSignature() { // TODO Auto-generated method stub return null; } public String getSigAlgName() { // TODO Auto-generated method stub return null; } public String getSigAlgOID() { // TODO Auto-generated method stub return null; } public byte[] getSigAlgParams() { // TODO Auto-generated method stub return null; } public boolean[] getIssuerUniqueID() { // TODO Auto-generated method stub return null; } public boolean[] getSubjectUniqueID() { // TODO Auto-generated method stub return null; } public boolean[] getKeyUsage() { // TODO Auto-generated method stub return null; } public int getBasicConstraints() { // TODO Auto-generated method stub return 0; } public byte[] getEncoded() { // TODO Auto-generated method stub return null; } public void verify(PublicKey arg0) { // TODO Auto-generated method stub } public void verify(PublicKey arg0, String arg1) { // TODO Auto-generated method stub } public String toString() { // TODO Auto-generated method stub return null; } public PublicKey getPublicKey() { // TODO Auto-generated method stub return null; } public boolean hasUnsupportedCriticalExtension() { // TODO Auto-generated method stub return false; } @SuppressWarnings("unchecked") public Set getCriticalExtensionOIDs() { // TODO Auto-generated method stub return null; } @SuppressWarnings("unchecked") public Set getNonCriticalExtensionOIDs() { // TODO Auto-generated method stub return null; } public byte[] getExtensionValue(String arg0) { // TODO Auto-generated method stub return null; } } Other ActiveMQ examples (source code examples)Here is a short list of links related to this ActiveMQ StubX509Certificate.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.