ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/catalina/authenticator/jaspic/TesterServerAuthModuleA.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/catalina/authenticator/jaspic/TesterServerAuthModuleA.java
Status
scanned
Type
file
Name
TesterServerAuthModuleA.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2314 (2.3 KB)
MD5
892e1793949bfd67aec030a3a0e8f430
SHA1
5a75dd55c4e0587759ec0f08a8ff6fc5c1998203
SHA256
8ef6684e99ca3169ff9dcc7b0dce363eed8a86abe15ae235e266fd355635b7aa
SHA512

      
    
SHA1_git
80c5f2d0fa5f9a118f5dcd5e342c928bff447d16
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TesterServerAuthModuleA.java | 2.3 KB |

/** * 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.catalina.authenticator.jaspic; import java.util.Map; import javax.security.auth.Subject; import javax.security.auth.callback.CallbackHandler; import jakarta.security.auth.message.AuthException; import jakarta.security.auth.message.AuthStatus; import jakarta.security.auth.message.MessageInfo; import jakarta.security.auth.message.MessagePolicy; import jakarta.security.auth.message.module.ServerAuthModule; public class TesterServerAuthModuleA implements ServerAuthModule { private StringBuilder trace = new StringBuilder("init()-"); @Override public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException { return null; } @Override public AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException { return null; } @Override public void cleanSubject(MessageInfo messageInfo, Subject subject) throws AuthException { trace.append("cleanSubject()-"); messageInfo.getMap().put("trace", trace.toString()); } @Override public void initialize(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, @SuppressWarnings("rawtypes") Map options) throws AuthException { // NO-OP } @Override public Class<?>[] getSupportedMessageTypes() { return null; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
47.79
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9