All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.aaa.cli.cert.GetTlsProtocols Maven / Gradle / Ivy

There is a newer version: 0.20.1
Show newest version
/*
 * Copyright (c) 2016 Inocybe Technologies. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

package org.opendaylight.aaa.cli.cert;

import java.util.Arrays;
import org.apache.karaf.shell.api.action.Action;
import org.apache.karaf.shell.api.action.Command;
import org.apache.karaf.shell.api.action.lifecycle.Reference;
import org.apache.karaf.shell.api.action.lifecycle.Service;
import org.opendaylight.aaa.cert.api.ICertificateManager;

/**
 * GetCipherSuites get the allowed cipher suites for TLS communication.
 *
 * @author mserngawy
 *
 */
@Service
@Command(name = "get-tls-protocols", scope = "aaa", description = "Get the allowed TLS Protocols.")
public class GetTlsProtocols implements Action {

    @Reference private ICertificateManager certProvider;

    @Override
    public Object execute() throws Exception {
        return "Protocols: " + Arrays.toString(certProvider.getTlsProtocols());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy