ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/security/auth/message/ClientAuth.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/security/auth/message/ClientAuth.java
Status
scanned
Type
file
Name
ClientAuth.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2738 (2.7 KB)
MD5
c7ae860875e20d5b9660213cf0ea7e0a
SHA1
6babc78a9cc0454b5f456e600b47b783b144b8a2
SHA256
02c8718c99016533c110053a878790fc4d3bcc891a8daa63f75d4908e2bc52bc
SHA512

      
    
SHA1_git
231acdc1efd4d997cc12ae4c9ee2d2e2a8e92d7b
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ClientAuth.java | 2.7 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 jakarta.security.auth.message; import javax.security.auth.Subject; public interface ClientAuth { /** * Secure (authenticate) the request. * * @param messageInfo The associated request and response * @param clientSubject The subject that represents the source of the request * * @return An AuthStatus instance that represents the result of the authentication * * @throws AuthException If a failure occurred in a manner that prevented the failure from being communicated via * messageInfo */ AuthStatus secureRequest(MessageInfo messageInfo, Subject clientSubject) throws AuthException; /** * Validate a response. * * @param messageInfo The associated request and response * @param clientSubject The subject that represents the recipient of the response * @param serviceSubject The subject that represents the source of the response * * @return An AuthStatus instance that represents the result of the validation * * @throws AuthException If a failure occurred in a manner that prevented the failure from being communicated via * messageInfo */ default AuthStatus validateResponse(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException { return AuthStatus.SUCCESS; } /** * Remove principals and/or credentials from the subject that were previously added by this authentication * mechanism. * * @param messageInfo The associated request and response * @param subject The subject to clean * * @throws AuthException If a failure occurred */ default void cleanSubject(MessageInfo messageInfo, Subject subject) throws AuthException { // NO-OP } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
38.89
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