test/jdk/javax/management/security/ServerDelegateMBean.java
author lfoltan
Tue, 20 Feb 2018 07:46:40 -0500
changeset 49026 844bf1deff1a
parent 47216 71c04702a3d5
permissions -rw-r--r--
8196884: VS2017 Multiple Type Cast Conversion Compilation Errors Summary: Change the type of symbolic constant badAddressVal and introduce specific casts to fix multiple type cast conversion compilation errors. Reviewed-by: coleenp, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34827
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     1
/*
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     2
 * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     4
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     7
 * published by the Free Software Foundation.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     8
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    13
 * accompanied this code).
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    14
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    18
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    21
 * questions.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    22
 */
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    23
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    24
import java.security.Principal;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    25
import java.util.List;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    26
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    27
import javax.management.remote.JMXServiceURL ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    28
import javax.management.ObjectName;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    29
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    30
@SqeDescriptorKey("INTERFACE ServerDelegateMBean")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    31
public interface ServerDelegateMBean {
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    32
    @SqeDescriptorKey("ATTRIBUTE Address")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    33
    public void addAddress(JMXServiceURL url);
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    34
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    35
    @SqeDescriptorKey("ATTRIBUTE Address")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    36
    public List<JMXServiceURL> getAddresses();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    37
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    38
    public String getPort();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    39
    public void setPort(String p);
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    40
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    41
    public String getJavaVersion();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    42
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    43
    public void sqeJmxwsCredentialsProviderCalled();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    44
    public int getSqeJmxwsCredentialsProviderCallCount();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    45
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    46
    public void setJmxwsCredentialsProviderUrl(String url);
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    47
    public String getJmxwsCredentialsProviderUrl();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    48
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    49
    public void testJMXAuthenticatorCalled();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    50
    public int getTestJMXAuthenticatorCallCount();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    51
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    52
    public void setTestJMXAuthenticatorPrincipal(Principal principal);
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    53
    public String getTestJMXAuthenticatorPrincipalString();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    54
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    55
    public void createStandardMBean(
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    56
            String implementationClassName,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    57
            String interfaceClassName,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    58
            boolean isMXBean,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    59
            ObjectName name)
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    60
            throws Exception;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    61
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    62
    public void createStandardMBean(
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    63
            String implementationClassName,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    64
            boolean isMXBean,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    65
            ObjectName name)
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    66
            throws Exception;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    67
}