Examples of Subject


Examples of org.opensaml.saml2.core.Subject

        List<AttributeStatement> attributeStatements = saml2Assertion.getAttributeStatements();
        if (attributeStatements == null || attributeStatements.isEmpty()) {
            throw new WSSecurityException(WSSecurityException.FAILURE, "invalidSAMLsecurity");
        }
       
        Subject subject = saml2Assertion.getSubject();
        NameID nameID = subject.getNameID();
        String subjectName = nameID.getValue();
        if ("alice".equals(subjectName) || "bob".equals(subjectName)) {
            return validatedCredential;
        }
       
View Full Code Here

Examples of org.openxri.saml.Subject

    if (!oAssertion.isValid()) {
      return false;
    }

    // Subject must have correct info
    Subject oSubject = oAssertion.getSubject();
    if (oSubject == null) {
      return false;
    }

    NameID oNameID = oSubject.getNameID();
    if (oNameID == null) {
      return false;
    }

    if (!sSubsegment.equals(oNameID.getValue())) {
View Full Code Here

Examples of org.rhq.core.domain.auth.Subject

    /**
     * @see org.rhq.enterprise.server.auth.SubjectManagerLocal#getSubjectBySessionId(int)
     */
    public Subject getSubjectBySessionId(int sessionId) throws Exception {
        Subject subject = sessionManager.getSubject(sessionId);

        return subject;
    }
View Full Code Here

Examples of org.springside.examples.showcase.common.entity.Subject

    assertEquals("Good Morning!!", subject.getReplyList().get(0).getContent());
  }

  @Test
  public void createSubject() {
    Subject subject = new Subject();
    subject.setTitle("Good Night");
    subject.setContent("Good Night!!");
    subject.setModifyTime(new Date());

    User user = userDao.get("1");
    subject.setUser(user);

    subjectDao.save(subject);
    subjectDao.flush();
    subject = subjectDao.getDetail(subject.getId());
    assertEquals("Good Night!!", subject.getContent());
  }
View Full Code Here

Examples of org.uberfire.security.Subject

    @Override
    public Subject authenticate( final SecurityContext context ) throws AuthenticationException {
        final HttpSecurityContext httpContext = checkInstanceOf( "context", context, HttpSecurityContext.class );

        try {
            final Subject subject = authManager.authenticate( httpContext );
            httpContext.setCurrentSubject( subject );
            return subject;
        } catch ( Exception ex ) {
            throw new AuthenticationException( "Validation fails.", ex );
        }
View Full Code Here

Examples of project.entities.institute.Subject

public class SubjectConverter implements Converter {
  private MarksBean marksBean;
    @Override
    public Object getAsObject(FacesContext context, UIComponent ui,
        String newValue) {
      Subject selected = new Subject("", "", 1f, "");
      marksBean = (MarksBean) BeanManager.findManagedBean("marksBean");
      for(Subject subject: marksBean.getSubjects()){
        if(subject.getName().equals(newValue)){
          selected = subject;
          break;
View Full Code Here

Examples of quickfix.field.Subject

      
        Endpoint producerEndpoint = component.createEndpoint(getEndpointUri(settingsFile.getName(), acceptorSessionID));
        Producer producer = producerEndpoint.createProducer();
       
        // FIX message to send
        Email email = new Email(new EmailThreadID("ID"), new EmailType(EmailType.NEW), new Subject("Test"));
        Exchange exchange = producer.createExchange(ExchangePattern.InOnly);
        exchange.getIn().setBody(email);
       
        producer.process(exchange);           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.