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

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

      
    
Rootfs path

      
    
Size
1873 (1.8 KB)
MD5
6d9b0f54750f691580d83f476900e26a
SHA1
60994bd858bc1a9e6501418951ecc64594d69e92
SHA256
518c5693a1e75d9a26e6054e8a66231d2e6ecb24b85759948110a0da46568fb1
SHA512

      
    
SHA1_git
a954674b39d0ff5f41d56d122b3bf797ab8d48f4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
CallerPrincipalCallback.java | 1.8 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.callback; import java.security.Principal; import javax.security.auth.Subject; import javax.security.auth.callback.Callback; /** * Callback that enables an authentication module to inform the runtime of the call principal or name of the caller * principal. */ public class CallerPrincipalCallback implements Callback { private final Subject subject; private final Principal principal; private final String name; public CallerPrincipalCallback(Subject subject, Principal principal) { this.subject = subject; this.principal = principal; this.name = null; } public CallerPrincipalCallback(Subject subject, String name) { this.subject = subject; this.principal = null; this.name = name; } public Subject getSubject() { return subject; } public Principal getPrincipal() { return principal; } public String getName() { return name; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
53.85
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